mirror of
https://github.com/vale981/tridactyl
synced 2025-03-06 01:51:40 -05:00
hinting: leave hint mode if no hints
This commit is contained in:
parent
616255c8ea
commit
d1784c994d
1 changed files with 9 additions and 4 deletions
|
@ -51,10 +51,15 @@ export function hintPage(
|
|||
modeState.hintchars += name
|
||||
modeState.hints.push(new Hint(el, name, onSelect))
|
||||
}
|
||||
console.log("HINTS", modeState.hints)
|
||||
modeState.focusedHint = modeState.hints[0]
|
||||
modeState.focusedHint.focused = true
|
||||
document.body.appendChild(modeState.hintHost)
|
||||
|
||||
if (modeState.hints.length) {
|
||||
console.log("HINTS", modeState.hints)
|
||||
modeState.focusedHint = modeState.hints[0]
|
||||
modeState.focusedHint.focused = true
|
||||
document.body.appendChild(modeState.hintHost)
|
||||
} else {
|
||||
reset()
|
||||
}
|
||||
}
|
||||
|
||||
/** vimperator-style minimal hint names */
|
||||
|
|
Loading…
Add table
Reference in a new issue