mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-24 06:48:02 +08:00
pressing tab with quicktab hides leaderboards
This commit is contained in:
parent
9ecd6e0147
commit
5bb5715475
1 changed files with 4 additions and 0 deletions
|
|
@ -24,6 +24,7 @@ import * as ShiftTracker from "./shift-tracker";
|
|||
import * as Replay from "./replay.js";
|
||||
import * as MonkeyPower from "./monkey-power";
|
||||
import * as WeakSpot from "./weak-spot";
|
||||
import * as Leaderboards from "./leaderboards";
|
||||
|
||||
let dontInsertSpace = false;
|
||||
let correctShiftUsed = true;
|
||||
|
|
@ -603,6 +604,9 @@ function handleTab(event) {
|
|||
) {
|
||||
if (UI.getActivePage() == "pageTest") {
|
||||
if (Config.quickTab) {
|
||||
if (!$("#leaderboardsWrapper").hasClass("hidden")) {
|
||||
Leaderboards.hide();
|
||||
}
|
||||
if (
|
||||
TestUI.resultVisible ||
|
||||
!(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue