Vanessa 2 years ago
parent
commit
da2ed6adf3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/src/protyle/util/hotKey.ts

+ 1 - 1
app/src/protyle/util/hotKey.ts

@@ -3,7 +3,7 @@ import {Constants} from "../../constants";
 
 // 是否匹配 ⇧⌘[] / ⌘[] / ⌥[] / ⌥⌘[] / ⌥⇧[] / ⌥⇧⌘[] / ⇧[] / []
 export const matchHotKey = (hotKey: string, event: KeyboardEvent) => {
-    if (hotKey === "") {
+    if (!hotKey) {
         return false;
     }