Browse Source

Map number keys to 'typing' event

Thibaut 10 years ago
parent
commit
04bc317dd8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      assets/javascripts/app/shortcuts.coffee

+ 1 - 1
assets/javascripts/app/shortcuts.coffee

@@ -35,7 +35,7 @@ class app.Shortcuts
     return
 
   handleKeydownEvent: (event) ->
-    if not event.target.form and 65 <= event.which <= 90
+    if not event.target.form and (48 <= event.which <= 57 or 65 <= event.which <= 90)
       @trigger 'typing'
       return