This commit is contained in:
Vanessa 2022-09-25 12:25:01 +08:00
parent a59014cf2d
commit deab11f9d0
4 changed files with 61 additions and 66 deletions

View file

@ -89,8 +89,21 @@ export abstract class Constants {
fr_FR: "20200923234011-ieuun1p",
};
public static readonly KEYCODE: { [key: string]: string[] } = {
"186": [";", ":"],
"187": ["=", "+"],
"188": [",", "<"],
"189": ["-", "_"],
"190": [".", ">"],
"191": ["/", "?"],
"192": ["`", "~"],
"219": ["[", "{"],
"220": ["\\", "|"],
"221": ["]", "}"],
"222": ["'", '"'],
};
// "⌘", "⇧", "⌥", "⌃"
// "⌘A", "⌘X", "⌘C", "⌘V", "⌘/", "⇧↑", "⇧↓", "⇧→", "⇧←", "⇧⇥", "⇧⌘⇥", "⌃⇥", "⌃⌘⇥", "⇧⌘→", "⇧⌘←", "⌘Home", "⌘End", "⇧↩", "↩", "PageUp", "PageDown", "⌫", "⌦" 不可自定义
// "⌘A", "⌘X", "⌘C", "⌘V", "⌘/", "⇧↑", "⇧↓", "⇧→", "⇧←", "⇧⇥", "⇧⌘⇥", "⌃⇥", "⌃⌘⇥", "⇧⌘→", "⇧⌘←", "⌘Home", "⌘End", "⇧↩", "↩", "PageUp", "PageDown", "⌫", "⌦", "⌃I", "⌃E", "⌃N", "⌃U" 不可自定义
public static readonly SIYUAN_KEYMAP: IKeymap = {
general: {
syncNow: {default: "F9", custom: "F9"},