This commit is contained in:
parent
6cb56b8767
commit
e5c08dee7b
1 changed files with 3 additions and 0 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Reference in a new issue