feat:support mac os shortcut

This commit is contained in:
Hufe921
2023-02-16 17:52:23 +08:00
parent c522c225b1
commit 0d6e0cf412
7 changed files with 33 additions and 20 deletions
+3 -1
View File
@@ -4,8 +4,10 @@ import { KeyMap } from '../../dataset/enum/KeyMap'
export interface IRegisterShortcut {
key: KeyMap;
ctrl?: boolean;
meta?: boolean;
mod?: boolean; // windows:ctrl || mac:command
shift?: boolean;
alt?: boolean;
alt?: boolean; // windows:alt || mac:option
isGlobal?: boolean;
callback: (command: Command) => any;
}