mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-05 21:33:40 +08:00
fixed autofocus stopping tab enter
This commit is contained in:
parent
35a23f09b3
commit
cf2bcb7f50
1 changed files with 2 additions and 2 deletions
|
@ -4531,7 +4531,7 @@ $(document).keydown(function (event) {
|
|||
!$("#customTextPopupWrapper").hasClass("hidden") ||
|
||||
!$("#customMode2PopupWrapper").hasClass("hidden");
|
||||
if (pageTestActive && !commandLineVisible && !modePopupVisible) {
|
||||
if (!wordsFocused && event.key !== "Enter" && event.key !== "Space") {
|
||||
if (!wordsFocused && event.key !== "Enter") {
|
||||
focusWords();
|
||||
return;
|
||||
}
|
||||
|
@ -4649,7 +4649,7 @@ function handleBackspace(event) {
|
|||
if (addspace) {
|
||||
currentInput += " ";
|
||||
}
|
||||
} else if(event.metaKey){
|
||||
} else if (event.metaKey) {
|
||||
currentInput = "";
|
||||
} else {
|
||||
currentInput = currentInput.substring(0, currentInput.length - 1);
|
||||
|
|
Loading…
Reference in a new issue