mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-05 13:27:49 +08:00
disabled tab when tags or preset popup is visible
This commit is contained in:
parent
c442726649
commit
8d1558086a
1 changed files with 7 additions and 0 deletions
|
@ -35,6 +35,13 @@ function handleTab(event) {
|
|||
if (TestUI.resultCalculating) {
|
||||
event.preventDefault();
|
||||
}
|
||||
if (
|
||||
!$("#presetWrapper").hasClass("hidden") ||
|
||||
!$("#tagsWrapper").hasClass("hidden")
|
||||
) {
|
||||
event.preventDefault();
|
||||
return;
|
||||
}
|
||||
if ($("#customTextPopup .textarea").is(":focus")) {
|
||||
event.preventDefault();
|
||||
|
||||
|
|
Loading…
Reference in a new issue