mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 15:37:59 +01:00
Show all valid hints on tab. Closes issue #339.
This commit is contained in:
@@ -621,10 +621,10 @@ var HintSession = Class("HintSession", CommandMode, {
|
||||
return Events.KILL;
|
||||
},
|
||||
|
||||
updateValidNumbers: function updateValidNumbers() {
|
||||
updateValidNumbers: function updateValidNumbers(always) {
|
||||
let string = this.getHintString(this.hintNumber);
|
||||
for (let hint in values(this.validHints))
|
||||
hint.valid = hint.span.getAttribute("number").indexOf(string) == 0;
|
||||
hint.valid = always || hint.span.getAttribute("number").indexOf(string) == 0;
|
||||
},
|
||||
|
||||
tab: function tab(previous) {
|
||||
@@ -643,6 +643,7 @@ var HintSession = Class("HintSession", CommandMode, {
|
||||
this.hintNumber = this.validHints.length;
|
||||
}
|
||||
|
||||
this.updateValidNumbers(true);
|
||||
this.showActiveHint(this.hintNumber, oldId);
|
||||
this.updateStatusline();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user