From b64e882c9ce1ed3ba1bb8fa666ec263d93dcff4a Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Mon, 17 Sep 2007 01:33:59 +0000 Subject: [PATCH] fix onKeyDown handler to use 0.5 style mode handling - bad merge --- chrome/content/vimperator/events.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/vimperator/events.js b/chrome/content/vimperator/events.js index b7fce475..08b640a6 100644 --- a/chrome/content/vimperator/events.js +++ b/chrome/content/vimperator/events.js @@ -614,7 +614,7 @@ function Events() //{{{ // this is need for sites like msn.com which focus the input field on keydown this.onKeyDown = function(event) { - if (vimperator.modes.passNextKey ^ vimperator.modes.passAllKeys || isFormElemFocused()) + if (vimperator.hasMode(vimperator.modes.ESCAPE_ONE_KEY) || vimperator.hasMode(vimperator.modes.ESCAPE_ALL_KEYS) || isFormElemFocused()) return true; event.preventDefault();