mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2026-01-11 09:55:13 +08:00
defused the bomb planted by @SeerLite
This commit is contained in:
parent
c80759dded
commit
dc3fc3eafe
1 changed files with 4 additions and 2 deletions
|
|
@ -542,7 +542,6 @@ function handleChar(char, charIndex) {
|
|||
if (char !== "\n") {
|
||||
Caret.updatePosition();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function handleTab(event) {
|
||||
|
|
@ -782,7 +781,10 @@ $("#wordsInput").on("input", (event) => {
|
|||
// input will be modified even with the preventDefault() in
|
||||
// beforeinput/keydown if it's part of a compose sequence. this undoes
|
||||
// the effects of that and takes the input out of compose mode.
|
||||
if (Config.layut !== "default" && inputValue.length >= TestLogic.input.current.length) {
|
||||
if (
|
||||
Config.layout !== "default" &&
|
||||
inputValue.length >= TestLogic.input.current.length
|
||||
) {
|
||||
setWordsInput(" " + TestLogic.input.current);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue