summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2011-03-23 11:34:21 -0400
committerKris Maglione <maglione.k@gmail.com>2011-03-23 11:34:21 -0400
commit725d884bc4cdb9bd5ce7fe4e53a6ce9c55e4600f (patch)
tree09c2709753a593bd546f8d0faa6bd89fb59781ae
parent300cba70cf02e8a3ca6bc0b089c2b0681b89d174 (diff)
downloadpentadactyl-725d884bc4cdb9bd5ce7fe4e53a6ce9c55e4600f.tar.gz
Don't pass keydown events to input elements. Closes issue #453.
-rw-r--r--common/content/events.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/content/events.js b/common/content/events.js
index 36ba5b1b..a1ca17f5 100644
--- a/common/content/events.js
+++ b/common/content/events.js
@@ -1329,7 +1329,7 @@ var Events = Module("events", {
// Prevents certain sites from transferring focus to an input box
// before we get a chance to process our key bindings on the
// "keypress" event.
- if (!pass && !Events.isInputElement(dactyl.focusedElement))
+ if (!pass)
event.stopPropagation();
},
keydown: function onKeyDown(event) {