impr: dont block keyboard shortcuts (like cmd + r) when out of focus warning is shown

This commit is contained in:
Miodec 2024-03-15 17:35:23 +01:00
parent a8f6caebc9
commit db560d252c

View file

@ -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();
}
}