History

Don't capture space-key events when typing, to allow using space characters in the search

Thibaut committed 11 years ago

Commit bbf62921 parent 499b7d91 file · +5 −2Browse files

Showing the changes to assets/javascripts/app (1 of 1 file). Show all

Unified · Split

assets/javascripts/app/shortcuts.coffee+5−2
@@ -47,8 +47,9 @@ class app.Shortcuts · 46 unmodified lines
47 when 2747 when 27
48 @trigger 'escape'48 @trigger 'escape'
49 when 3249 when 32
50 @trigger 'pageDown'50 if not @lastKeypress or @lastKeypress < Date.now() - 1000
51 false51 @trigger 'pageDown'
52 false
52 when 3353 when 33
53 @trigger 'pageUp'54 @trigger 'pageUp'
54 when 3455 when 34
@@ -127,3 +128,5 @@ class app.Shortcuts · 72 unmodified lines
127 if event.which is 63 and not event.target.value128 if event.which is 63 and not event.target.value
128 @trigger 'help'129 @trigger 'help'
129 false130 false
131 else
132 @lastKeypress = Date.now()