From da2ed6adf39ae84edd2cce1652ce1d6798921b1f Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 14 Jun 2023 09:08:19 +0800 Subject: [PATCH] :art: --- app/src/protyle/util/hotKey.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }