mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-09 21:54:13 +01:00
RangeFind highlight cleanup stuff and stuff.
This commit is contained in:
@@ -901,7 +901,9 @@ var Events = Module("events", {
|
||||
if (elem == null && urlbar && urlbar.inputField == this._lastFocus)
|
||||
util.threadYield(true); // Why? --Kris
|
||||
|
||||
while (modes.main.ownsFocus && modes.topOfStack.params.ownsFocus != elem
|
||||
while (modes.main.ownsFocus
|
||||
&& modes.topOfStack.params.ownsFocus != elem
|
||||
&& modes.topOfStack.params.ownsFocus != win
|
||||
&& !modes.topOfStack.params.holdFocus)
|
||||
modes.pop(null, { fromFocus: true });
|
||||
}
|
||||
|
||||
@@ -291,7 +291,6 @@ var Modes = Module("modes", {
|
||||
|
||||
inSet: false,
|
||||
|
||||
// helper function to set both modes in one go
|
||||
set: function set(mainMode, extendedMode, params, stack) {
|
||||
var delayed, oldExtended, oldMain, prev, push;
|
||||
|
||||
@@ -628,7 +627,8 @@ var Modes = Module("modes", {
|
||||
opts);
|
||||
},
|
||||
prefs: function initPrefs() {
|
||||
prefs.watch("accessibility.browsewithcaret", function () modes.onCaretChange.apply(modes, arguments));
|
||||
prefs.watch("accessibility.browsewithcaret",
|
||||
function () { modes.onCaretChange.apply(modes, arguments) });
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user