mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-06 13:55:19 +08:00
Merge pull request #843 from SeerLite/quicktab-fix
Don't try to focus on result screen
This commit is contained in:
commit
e8a3f2d6ae
1 changed files with 10 additions and 5 deletions
|
@ -4686,11 +4686,16 @@ $(document).keydown(function (event) {
|
|||
let modePopupVisible =
|
||||
!$("#customTextPopupWrapper").hasClass("hidden") ||
|
||||
!$("#customMode2PopupWrapper").hasClass("hidden");
|
||||
if (pageTestActive && !commandLineVisible && !modePopupVisible) {
|
||||
if (!wordsFocused && event.key !== "Enter") {
|
||||
focusWords();
|
||||
if (config.showOutOfFocusWarning) return;
|
||||
}
|
||||
if (
|
||||
pageTestActive &&
|
||||
!commandLineVisible &&
|
||||
!modePopupVisible &&
|
||||
!resultVisible &&
|
||||
!wordsFocused &&
|
||||
event.key !== "Enter"
|
||||
) {
|
||||
focusWords();
|
||||
if (config.showOutOfFocusWarning) return;
|
||||
}
|
||||
|
||||
//tab
|
||||
|
|
Loading…
Reference in a new issue