1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-07 02:45:47 +01:00

fixed msn.com

This commit is contained in:
Martin Stubenschrott
2007-09-12 15:45:28 +00:00
parent 5ead69ea6a
commit 70c690e411
2 changed files with 15 additions and 0 deletions

1
NEWS
View File

@@ -1,6 +1,7 @@
<pre>
2007-xx-xx:
* version 0.6
* sites like msn.com or yahoo.com don't focus search field anymore on keydown
* new gi browser command to focus last used input box
* edit TEXTAREAs with many vim commands in a vim and even visual mode if you :set noinsertmode
* support for emacs/bash-like ctrl-e/a/u/k/h keys in single line text fields

View File

@@ -703,6 +703,20 @@ function Events() //{{{
}
window.addEventListener("keypress", this.onKeyPress, true);
// this is need for sites like msn.com which focus the input field on keydown
this.onKeyDown = function(event)
{
if ((vimperator.hasMode(vimperator.modes.ESCAPE_ONE_KEY) && !vimperator.hasMode(vimperator.modes.ESCAPE_ALL_KEYS)) ||
(vimperator.hasMode(vimperator.modes.ESCAPE_ALL_KEYS) && !vimperator.hasMode(vimperator.modes.ESCAPE_ONE_KEY)) ||
isFormElemFocused())
return true;
event.preventDefault();
event.stopPropagation();
return false;
}
window.addEventListener("keydown", this.onKeyDown, true);
this.progressListener =
{
QueryInterface: function(aIID)