Skip to content

Commit 4522878

Browse files
committed
Bail out
1 parent 4b1e131 commit 4522878

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

frontend/src/ts/input/hotkeys/quickrestart.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)