This commit is contained in:
Vanessa
2023-11-25 09:20:21 +08:00
committed by Daniel
parent 6cb56b8767
commit e5c08dee7b

View File

@@ -102,6 +102,9 @@ export const matchHotKey = (hotKey: string, event: KeyboardEvent) => {
// 是否匹配 ⌃[] / ⌃⌘[] / ⌃⌥[] / ⌃⇧[]/ ⌃⌥⇧[]
if (hotKey.startsWith("⌃")) {
if (!isMac()) {
return false;
}
let keyCode = hotKeys.length === 3 ? hotKeys[2] : hotKeys[1];
if (hotKeys.length === 4) {
keyCode = hotKeys[3];