Vanessa 2 年之前
父节点
当前提交
da2ed6adf3
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;
     }