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:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user