Skip to content

Commit

Permalink
impr: dont block keyboard shortcuts (like cmd + r) when out of focus …
Browse files Browse the repository at this point in the history
…warning is shown
  • Loading branch information
Miodec committed Mar 15, 2024
1 parent a8f6cae commit db560d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/ts/controllers/input-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,7 @@ $(document).on("keydown", async (event) => {
!["Enter", "Tab", ...ModifierKeys].includes(event.key)
) {
TestUI.focusWords();
if (Config.showOutOfFocusWarning) {
if (Config.showOutOfFocusWarning && !event.ctrlKey && !event.metaKey) {
event.preventDefault();
}
}
Expand Down

0 comments on commit db560d2

Please sign in to comment.