History

Fix issue when hitting escaping key in single doc mode

Thibaut Courouble committed 9 years ago

Commit 7947f2d1 parent b353d3a1 file · +1 −0Browse files

Unified · Split

assets/javascripts/app/shortcuts.coffee+1−0
@@ -57,6 +57,7 @@ class app.Shortcuts · 56 unmodified lines
57 @trigger 'enter'57 @trigger 'enter'
58 when 2758 when 27
59 @trigger 'escape'59 @trigger 'escape'
60 false
60 when 3261 when 32
61 if event.target.type is 'search' and (not @lastKeypress or @lastKeypress < Date.now() - 500)62 if event.target.type is 'search' and (not @lastKeypress or @lastKeypress < Date.now() - 500)
62 @trigger 'pageDown'63 @trigger 'pageDown'