1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 14:27:58 +01:00

fix onKeyDown handler to use 0.5 style mode handling - bad merge

This commit is contained in:
Doug Kearns
2007-09-17 01:33:59 +00:00
parent 57886630c0
commit b64e882c9c

View File

@@ -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();