aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Crosby2009-11-28 01:19:34 -0800
committerPhil Crosby2009-11-28 01:19:34 -0800
commita1b2568e6501c7aaf0b2aeea5c5aa8588f0caf42 (patch)
treedec05fa3a3d8ded58d70abbd9730fbe46aee0bd2
parenta1f3e89cc3bc70ba578c44c6e8f54e2e27cc11cf (diff)
downloadvimium-a1b2568e6501c7aaf0b2aeea5c5aa8588f0caf42.tar.bz2
Only enter insert mode with the "INPUT" element is of type "text".
-rw-r--r--vimiumFrontend.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/vimiumFrontend.js b/vimiumFrontend.js
index 059bf361..bb1bdbda 100644
--- a/vimiumFrontend.js
+++ b/vimiumFrontend.js
@@ -184,7 +184,7 @@ function onBlurCapturePhase(event) {
}
function isInputOrText(target) {
- return (target.tagName == "INPUT" || target.tagName == "TEXTAREA");
+ return ((target.tagName == "INPUT" && target.type == "text") || target.tagName == "TEXTAREA");
}
function enterInsertMode() {