mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-01 14:28:49 +01:00
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
Add a link
Reference in a new issue