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:
1
NEWS
1
NEWS
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user