File tree Expand file tree Collapse file tree
frontend/src/ts/input/hotkeys Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,6 +22,14 @@ function quickRestart(e: KeyboardEvent): void {
2222 }
2323}
2424
25+ // Disable restart when quick restart key is enter, because `shift + enter, shift +
26+ // enter` is already reserved for bail out keybind.
27+ createHotkey (
28+ ( ) => hotkeys . quickRestart ,
29+ quickRestart ,
30+ ( ) => ( { enabled : ! isLongTest ( ) || getConfig . quickRestart !== "enter" } ) ,
31+ ) ;
32+
2533// We also want to have a hotkey for quick restart key without shift, so when the
2634// test is considered long (which means that we can't quick restart), we show a
2735// notification when the user tries to press the quick restart key without shift,
@@ -31,5 +39,3 @@ createHotkey(
3139 quickRestart ,
3240 ( ) => ( { enabled : isLongTest ( ) } ) ,
3341) ;
34-
35- createHotkey ( ( ) => hotkeys . quickRestart , quickRestart ) ;
You can’t perform that action at this time.
0 commit comments