mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-09-10 16:48:40 +08:00
fix: reset composition state to false on test restart
fixes rare bug where every key press would be considered a dead key
This commit is contained in:
parent
5ce574d0cd
commit
05a1272c5c
1 changed files with 2 additions and 0 deletions
|
@ -66,6 +66,7 @@ import {
|
|||
import * as XPBar from "../elements/xp-bar";
|
||||
import { getActiveFunboxes } from "./funbox/list";
|
||||
import { getFunboxesFromString } from "@monkeytype/funbox";
|
||||
import * as CompositionState from "../states/composition";
|
||||
|
||||
let failReason = "";
|
||||
const koInputVisual = document.getElementById("koInputVisual") as HTMLElement;
|
||||
|
@ -265,6 +266,7 @@ export function restart(options = {} as RestartOptions): void {
|
|||
MemoryFunboxTimer.reset();
|
||||
QuoteRateModal.clearQuoteStats();
|
||||
TestUI.reset();
|
||||
CompositionState.setComposing(false);
|
||||
|
||||
if (TestUI.resultVisible) {
|
||||
if (Config.randomTheme !== "off") {
|
||||
|
|
Loading…
Add table
Reference in a new issue