mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 23:07:59 +01:00
* Initial code for "waiting" macros. Still buggy/incomplete, but commiting, before merging other patches becomes even more tedious.
* Also a new attempt that pages don't have input focus after load, probably buggy as well
This commit is contained in:
@@ -462,10 +462,21 @@ vimperator.Hints = function () //{{{
|
||||
}
|
||||
else
|
||||
{
|
||||
setTimeout(function () {
|
||||
if (timeout == 0 || vimperator.modes.isReplaying)
|
||||
{
|
||||
// force a possible mode change, based on wheter an input field has focus
|
||||
vimperator.events.onFocusChange();
|
||||
if (vimperator.mode == vimperator.modes.HINTS)
|
||||
vimperator.modes.reset(false);
|
||||
}, timeout);
|
||||
}
|
||||
else
|
||||
{
|
||||
vimperator.modes.add(vimperator.modes.INACTIVE_HINT);
|
||||
setTimeout(function () {
|
||||
if (vimperator.mode == vimperator.modes.HINTS)
|
||||
vimperator.modes.reset(false);
|
||||
}, timeout);
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user