mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 10:37:58 +01:00
fix onKeyDown handler to use 0.5 style mode handling - bad merge
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user