File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
frontend/src/ts/event-handlers Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -11,14 +11,14 @@ import * as TestLogic from "../test/test-logic";
1111import { navigate } from "../controllers/route-controller" ;
1212import { isInputElementFocused } from "../input/input-element" ;
1313import * as ManualRestart from "../test/manual-restart-tracker" ;
14+ import * as TestState from "../test/test-state" ;
1415
1516document . 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
You can’t perform that action at this time.
0 commit comments