summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client/app/common/hotkey.ts6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/client/app/common/hotkey.ts b/src/client/app/common/hotkey.ts
index f7366e35cb..28a5ec204d 100644
--- a/src/client/app/common/hotkey.ts
+++ b/src/client/app/common/hotkey.ts
@@ -77,11 +77,7 @@ export default {
const matched = match(e, action.patterns);
if (matched) {
- if (el._hotkey_global) {
- if (match(e, targetReservedKeys)) {
- return;
- }
- }
+ if (el._hotkey_global && match(e, targetReservedKeys)) return;
e.preventDefault();
e.stopPropagation();