This commit is contained in:
Vanessa 2023-11-25 09:20:21 +08:00 committed by Daniel
parent 6cb56b8767
commit e5c08dee7b
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

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];