mirror of
https://github.com/vale981/tridactyl
synced 2025-03-06 01:51:40 -05:00
Fix annoying inputmode bug
This commit is contained in:
parent
bcbbbe6607
commit
027371029c
1 changed files with 1 additions and 2 deletions
|
@ -41,14 +41,13 @@ function* ParserController() {
|
|||
if (
|
||||
state.mode != "ignore" &&
|
||||
state.mode != "hint" &&
|
||||
state.mode != "input" &&
|
||||
state.mode != "find"
|
||||
) {
|
||||
if (isTextEditable(keyevent.target)) {
|
||||
if (state.mode !== "insert") {
|
||||
state.mode = "insert"
|
||||
}
|
||||
} else if (state.mode === "insert") {
|
||||
} else if (["insert", "input"].includes(state.mode)) {
|
||||
state.mode = "normal"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue