1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 06:47:58 +01:00

Fix closing the MOW after using hints.

This commit is contained in:
Kris Maglione
2010-09-24 09:50:03 -04:00
parent 3155e489aa
commit 519bf3b9c4
2 changed files with 4 additions and 5 deletions

View File

@@ -470,7 +470,7 @@ const Hints = Module("hints", {
this.timeout(function () {
if (modes.extended & modes.HINTS)
modes.reset();
modes.pop();
this._hintMode.action(elem, elem.href || "", this._extendedhintCount);
}, timeout);
return true;
@@ -763,7 +763,7 @@ const Hints = Module("hints", {
if (this._validHints.length == 0) {
dactyl.beep();
modes.reset();
modes.pop();
}
else if (this._validHints.length == 1)
this._processHints(false);
@@ -833,8 +833,8 @@ const Hints = Module("hints", {
case mappings.getMapLeader():
hints.escNumbers = !hints.escNumbers;
if (hints.escNumbers && this._usedTabKey) // this._hintNumber not used normally, but someone may wants to toggle
this._hintNumber = 0; // <tab>s ? this._reset. Prevent to show numbers not entered.
if (hints.escNumbers && this._usedTabKey)
this._hintNumber = 0;
this._updateStatusline();
return;