1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-06 21:15:46 +01:00

also prevent websites from catching keyup keys (fixes dict.leo.org)

This commit is contained in:
Martin Stubenschrott
2007-11-02 01:07:36 +00:00
parent 5dac5326a5
commit 463f6ea748

View File

@@ -723,7 +723,7 @@ vimperator.Events = function() //{{{
window.addEventListener("keypress", this.onKeyPress, true); window.addEventListener("keypress", this.onKeyPress, true);
// 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.onKeyUpOrDown = function(event)
{ {
if (vimperator.modes.passNextKey ^ vimperator.modes.passAllKeys || isFormElemFocused()) if (vimperator.modes.passNextKey ^ vimperator.modes.passAllKeys || isFormElemFocused())
return true; return true;
@@ -731,7 +731,8 @@ vimperator.Events = function() //{{{
event.stopPropagation(); event.stopPropagation();
return false; return false;
} }
window.addEventListener("keydown", this.onKeyDown, true); window.addEventListener("keydown", this.onKeyUpOrDown, true);
window.addEventListener("keyup", this.onKeyUpOrDown, true);
this.progressListener = this.progressListener =
{ {