mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-30 20:15:46 +01:00
Fix "match n of m" remaining in the progress line after <Esc>.
This commit is contained in:
@@ -383,13 +383,14 @@ const Dactyl = Module("dactyl", {
|
||||
},
|
||||
|
||||
focus: function (elem, flags) {
|
||||
flags = flags || services.focus.FLAG_BYMOUSE;
|
||||
try {
|
||||
if (elem instanceof Document)
|
||||
elem = elem.defaultView;
|
||||
if (elem instanceof Window)
|
||||
services.focus.clearFocus(elem);
|
||||
else
|
||||
services.focus.setFocus(elem, flags || services.focus.FLAG_BYMOUSE);
|
||||
services.focus.setFocus(elem, flags);
|
||||
} catch (e) {
|
||||
util.dump(elem);
|
||||
util.reportError(e);
|
||||
|
||||
Reference in New Issue
Block a user