1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-30 13:55:51 +01:00

Don't pass keydown events to input elements. Closes issue #453.

This commit is contained in:
Kris Maglione
2011-03-23 11:34:21 -04:00
parent 300cba70cf
commit 725d884bc4

View File

@@ -1329,7 +1329,7 @@ var Events = Module("events", {
// Prevents certain sites from transferring focus to an input box // Prevents certain sites from transferring focus to an input box
// before we get a chance to process our key bindings on the // before we get a chance to process our key bindings on the
// "keypress" event. // "keypress" event.
if (!pass && !Events.isInputElement(dactyl.focusedElement)) if (!pass)
event.stopPropagation(); event.stopPropagation();
}, },
keydown: function onKeyDown(event) { keydown: function onKeyDown(event) {