Update keymap when using layout emulator too (#1947) by SeerLite

Fixes #1945
This commit is contained in:
SeerLite 2021-10-05 10:40:12 -03:00 committed by GitHub
parent 3ad62f393c
commit acc6a699d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -710,6 +710,16 @@ $(document).keydown((event) => {
event.preventDefault();
handleChar(char, TestLogic.input.current.length);
}
if (Config.keymapMode === "next" && Config.mode !== "zen") {
Keymap.highlightKey(
TestLogic.words
.getCurrent()
.charAt(TestLogic.input.current.length)
.toString()
.toUpperCase()
);
}
}
});