Skip to content

Commit 32dff06

Browse files
committed
优化:快捷键显示 MacOS 系统支持显示 Control、Option、Command 名称优化
1 parent c0925e6 commit 32dff06

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

electron/mapi/keys/type.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@ export enum HotkeyMouseButtonEnum {
55

66
export type HotkeyKeyItem = {
77
key: string
8+
// Alt Option
89
altKey: boolean
10+
// Ctrl Control
911
ctrlKey: boolean
12+
// Command Win
1013
metaKey: boolean
14+
// Shift
1115
shiftKey: boolean
1216
times: number
1317
}

0 commit comments

Comments
 (0)