Vanessa 2023-06-17 16:22:14 +08:00
parent 59169d0479
commit 70acd57c4b
3 changed files with 116 additions and 104 deletions

View file

@ -101,19 +101,110 @@ export abstract class Constants {
public static readonly QUICK_DECK_ID = "20230218211946-2kw8jgx";
public static readonly KEYCODE: { [key: string]: string[] } = {
"186": [";", ":"],
"187": ["=", "+"],
"188": [",", "<"],
"189": ["-", "_"],
"190": [".", ">"],
"191": ["/", "?"],
"192": ["`", "~"],
"219": ["[", "{"],
"220": ["\\", "|"],
"221": ["]", "}"],
"222": ["'", '"'],
};
public static readonly KEYCODELIST: { [key: number]: string } = {
8: "⌫",
9: "⇥",
13: "↩",
16: "⇧",
17: "⌘",
18: "⌥",
19: "Pause",
20: "CapsLock",
27: "Escape",
32: " ",
33: "PageUp",
34: "PageDown",
35: "End",
36: "Home",
37: "←",
38: "↑",
39: "→",
40: "↓",
44: "PrintScreen",
45: "Insert",
46: "⌦",
48: "0",
49: "1",
50: "2",
51: "3",
52: "4",
53: "5",
54: "6",
55: "7",
56: "8",
57: "9",
65: "A",
66: "B",
67: "C",
68: "D",
69: "E",
70: "F",
71: "G",
72: "H",
73: "I",
74: "J",
75: "K",
76: "L",
77: "M",
78: "N",
79: "O",
80: "P",
81: "Q",
82: "R",
83: "S",
84: "T",
85: "U",
86: "V",
87: "W",
88: "X",
89: "Y",
90: "Z",
91: "⌘",
92: "⌘",
93: "⌘",
96: "0",
97: "1",
98: "2",
99: "3",
100: "4",
101: "5",
102: "6",
103: "7",
104: "8",
105: "9",
106: "*",
107: "+",
109: "-",
110: ".",
111: "/",
112: "F1",
113: "F2",
114: "F3",
115: "F4",
116: "F5",
117: "F6",
118: "F7",
119: "F8",
120: "F9",
121: "F10",
122: "F11",
123: "F12",
144: "NumLock",
145: "ScrollLock",
182: "MyComputer",
183: "MyCalculator",
186: ";",
187: "=",
188: ",",
189: "-",
190: ".",
191: "/",
192: "`",
219: "[",
220: "\\",
221: "]",
222: "'",
}
// 冲突不使用 "⌘S/Q"
// "⌘", "⇧", "⌥", "⌃"
// "⌘A", "⌘X", "⌘C", "⌘V", "⌘-", "⌘=", "⌘0", "⇧⌘V", "⌘/", "⇧↑", "⇧↓", "⇧→", "⇧←", "⇧⇥", "⇧⌘⇥", "⌃⇥", "⌘⇥", "⌃⌘⇥", "⇧⌘→", "⇧⌘←",
@ -164,7 +255,7 @@ export abstract class Constants {
expand: {default: "⌘↓", custom: "⌘↓"},
collapse: {default: "⌘↑", custom: "⌘↑"},
insertBottom: {default: "⌥⌘.", custom: "⌥⌘."},
refTab: {default: "⇧⌘>", custom: "⇧⌘>"},
refTab: {default: "⇧⌘.", custom: "⇧⌘."},
openBy: {default: "⌥,", custom: "⌥,"},
insertRight: {default: "⌥.", custom: "⌥."},
attr: {default: "⌥⌘A", custom: "⌥⌘A"},
@ -243,7 +334,7 @@ export abstract class Constants {
moveToLeft: {default: "⌥⌘L", custom: "⌥⌘L"},
moveToRight: {default: "⌥⌘R", custom: "⌥⌘R"},
"delete-row": {default: "⌘-", custom: "⌘-"},
"delete-column": {default: "⇧⌘_", custom: "⇧⌘_"}
"delete-column": {default: "⇧⌘-", custom: "⇧⌘-"}
}
},
plugin: {},