mirror of
https://github.com/vale981/tridactyl
synced 2025-03-06 01:51:40 -05:00
Don't count unfinished key-sequences towards n in nmode
This commit is contained in:
parent
2fead0aa78
commit
2eb046affb
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ export function parser(keys: KeyboardEvent[]) {
|
||||||
}
|
}
|
||||||
const response = keyseq.parse(keys, maps)
|
const response = keyseq.parse(keys, maps)
|
||||||
|
|
||||||
if (response.exstr != "") modeState.curCommands += 1
|
if ((response.exstr !== undefined && response.isMatch) || !response.isMatch) modeState.curCommands += 1
|
||||||
if (modeState.curCommands >= modeState.numCommands) {
|
if (modeState.curCommands >= modeState.numCommands) {
|
||||||
const prefix =
|
const prefix =
|
||||||
(response.exstr === undefined) ? "" : ("composite " + response.exstr + "; ")
|
(response.exstr === undefined) ? "" : ("composite " + response.exstr + "; ")
|
||||||
|
|
Loading…
Add table
Reference in a new issue