summaryrefslogtreecommitdiff
path: root/js/tool.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/tool.js')
-rw-r--r--js/tool.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/tool.js b/js/tool.js
index 807b645..81ab43b 100644
--- a/js/tool.js
+++ b/js/tool.js
@@ -13,7 +13,7 @@ var Tool = Model({
current_tool = this
this.span.classList.add('focused')
this.use()
- if (this.name != 'shader') { cursor_input.focus() }
+ if (this.name != 'shader' && is_desktop) { cursor_input.focus() }
},
blur: function(){
current_tool = null
@@ -38,14 +38,14 @@ var Checkbox = Tool.extend({
var BlurredCheckbox = Checkbox.extend({
focus: function(){
this.use()
- if (this.name != 'shader') { cursor_input.focus() }
+ if (this.name != 'shader' && is_desktop) { cursor_input.focus() }
}
})
var BlurredTool = Tool.extend({
focus: function(){
this.use()
- if (this.name != 'shader') { cursor_input.focus() }
+ if (this.name != 'shader' && is_desktop) { cursor_input.focus() }
}
})