diff --git a/app/src/protyle/util/hotKey.ts b/app/src/protyle/util/hotKey.ts index f48c1b778..f03ca84f8 100644 --- a/app/src/protyle/util/hotKey.ts +++ b/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; }