Explorar el Código

Fix space key not activating links and checkboxes

Thibaut Courouble hace 8 años
padre
commit
aed1d8e56e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      assets/javascripts/app/shortcuts.coffee

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

@@ -58,7 +58,7 @@ class app.Shortcuts
       when 27
         @trigger 'escape'
       when 32
-        if not @lastKeypress or @lastKeypress < Date.now() - 500
+        if event.target.type is 'search' and (not @lastKeypress or @lastKeypress < Date.now() - 500)
           @trigger 'pageDown'
           false
       when 33