mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-29 08:03:35 +02:00
fixed msn.com
This commit is contained in:
1
NEWS
1
NEWS
@@ -1,6 +1,7 @@
|
|||||||
<pre>
|
<pre>
|
||||||
2007-xx-xx:
|
2007-xx-xx:
|
||||||
* version 0.6
|
* 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
|
* 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
|
* 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
|
* 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);
|
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 =
|
this.progressListener =
|
||||||
{
|
{
|
||||||
QueryInterface: function(aIID)
|
QueryInterface: function(aIID)
|
||||||
|
|||||||
Reference in New Issue
Block a user