mirror of
https://github.com/vale981/tridactyl
synced 2025-03-06 10:01:39 -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.hintchars += name
|
||||||
modeState.hints.push(new Hint(el, name, onSelect))
|
modeState.hints.push(new Hint(el, name, onSelect))
|
||||||
}
|
}
|
||||||
console.log("HINTS", modeState.hints)
|
|
||||||
modeState.focusedHint = modeState.hints[0]
|
if (modeState.hints.length) {
|
||||||
modeState.focusedHint.focused = true
|
console.log("HINTS", modeState.hints)
|
||||||
document.body.appendChild(modeState.hintHost)
|
modeState.focusedHint = modeState.hints[0]
|
||||||
|
modeState.focusedHint.focused = true
|
||||||
|
document.body.appendChild(modeState.hintHost)
|
||||||
|
} else {
|
||||||
|
reset()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** vimperator-style minimal hint names */
|
/** vimperator-style minimal hint names */
|
||||||
|
|
Loading…
Add table
Reference in a new issue