mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-18 13:52:29 +02:00
fix onKeyDown handler to use 0.5 style mode handling - bad merge
This commit is contained in:
1 parent
57886630c0
commit
b64e882c9c
1 file changed
+1
-1
@@ -614,7 +614,7 @@ function Events() //{{{
|
|||||||
// this is need for sites like msn.com which focus the input field on keydown
|
// this is need for sites like msn.com which focus the input field on keydown
|
||||||
this.onKeyDown = function(event)
|
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;
|
return true;
|
||||||
|
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|||||||
Reference in new issue
Block a user