mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-14 06:45:51 +01:00
Fix <A-Tab>
This commit is contained in:
@@ -1381,6 +1381,7 @@ var CommandLine = Module("commandline", {
|
||||
if (this.context.waitingForTab || this.wildIndex == -1)
|
||||
this.complete(true, true);
|
||||
|
||||
this.wildtypes = wildmode;
|
||||
let count = Math.abs(offset);
|
||||
let steps = Math.constrain(this.wildtypes.length - this.wildIndex,
|
||||
1, count);
|
||||
|
||||
@@ -565,19 +565,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
||||
},
|
||||
|
||||
focus: function focus(elem, flags) {
|
||||
flags = flags || services.focus.FLAG_BYMOUSE;
|
||||
try {
|
||||
if (elem instanceof Document)
|
||||
elem = elem.defaultView;
|
||||
if (elem instanceof Element)
|
||||
services.focus.setFocus(elem, flags);
|
||||
else if (elem instanceof Window)
|
||||
services.focus.focusedWindow = elem;
|
||||
}
|
||||
catch (e) {
|
||||
util.dump(elem);
|
||||
util.reportError(e);
|
||||
}
|
||||
DOM(elem).focus(flags);
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user