not setting korean status or compose status if layout emulator is enabled

part of #3524
This commit is contained in:
Miodec 2022-09-09 11:34:13 +02:00
parent 8dabb39d70
commit 10ec2d6fc0

View file

@ -979,6 +979,7 @@ $("#wordsInput").on("input", (event) => {
TestInput.setKeypressNotAfk();
if (
(Config.layout == "default" || Config.layout == "korean") &&
(event.target as HTMLInputElement).value
.normalize()
.match(
@ -1112,10 +1113,12 @@ $("#wordsInput").on("copy paste", (event) => {
// Composing events
$("#wordsInput").on("compositionstart", () => {
if (Config.layout !== "default") return;
CompositionState.setComposing(true);
CompositionState.setStartPos(TestInput.input.current.length);
});
$("#wordsInput").on("compositionend", () => {
if (Config.layout !== "default") return;
CompositionState.setComposing(false);
});