mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-22 00:06:16 +08:00
fixed a bug where single character words in nospcae funbox would cause backspace to trigger twice
This commit is contained in:
parent
aba32bd11d
commit
ebf3c73709
|
@ -123,6 +123,7 @@ function backspaceToPrevious(): void {
|
|||
TestInput.corrected.popHistory();
|
||||
if (Config.funbox === "nospace" || Config.funbox === "arrows") {
|
||||
TestInput.input.current = TestInput.input.current.slice(0, -1);
|
||||
setWordsInput(" " + TestInput.input.current + " ");
|
||||
}
|
||||
TestWords.words.decreaseCurrentIndex();
|
||||
TestUI.setCurrentWordElementIndex(TestUI.currentWordElementIndex - 1);
|
||||
|
|
Loading…
Reference in a new issue