mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2026-01-11 01:44:50 +08:00
not setting korean status or compose status if layout emulator is enabled
part of #3524
This commit is contained in:
parent
8dabb39d70
commit
10ec2d6fc0
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue