Skip to content

Commit 3375419

Browse files
committed
fix: unable to enter fullscreen on result page
1 parent 0d9a1d9 commit 3375419

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/src/ts/event-handlers/global.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ import * as TestLogic from "../test/test-logic";
1111
import { navigate } from "../controllers/route-controller";
1212
import { isInputElementFocused } from "../input/input-element";
1313
import * as ManualRestart from "../test/manual-restart-tracker";
14+
import * as TestState from "../test/test-state";
1415

1516
document.addEventListener("keydown", (e) => {
1617
if (PageTransition.get()) return;
1718
if (e.key === undefined) return;
1819

1920
const pageTestActive: boolean = ActivePage.get() === "test";
20-
21-
if (pageTestActive && !isInputElementFocused()) {
21+
if (pageTestActive && !TestState.resultVisible && !isInputElementFocused()) {
2222
const popupVisible: boolean = Misc.isAnyPopupVisible();
2323
// this is nested because isAnyPopupVisible is a bit expensive
2424
// and we don't want to call it during the test

0 commit comments

Comments
 (0)