mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-15 10:06:10 +08:00
impr: dont block keyboard shortcuts (like cmd + r) when out of focus warning is shown
This commit is contained in:
parent
a8f6caebc9
commit
db560d252c
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue