mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-12 23:21:23 +08:00
This commit is contained in:
parent
5ad9de9541
commit
d8ee9f357f
@ -92,13 +92,16 @@ const hotKey2Electron = (key) => {
|
|||||||
if (key.indexOf("⌘") > -1) {
|
if (key.indexOf("⌘") > -1) {
|
||||||
electronKey += "CommandOrControl+";
|
electronKey += "CommandOrControl+";
|
||||||
}
|
}
|
||||||
|
if (key.indexOf("⌃") > -1) {
|
||||||
|
electronKey += "Control+";
|
||||||
|
}
|
||||||
if (key.indexOf("⇧") > -1) {
|
if (key.indexOf("⇧") > -1) {
|
||||||
electronKey += "Shift+";
|
electronKey += "Shift+";
|
||||||
}
|
}
|
||||||
if (key.indexOf("⌥") > -1) {
|
if (key.indexOf("⌥") > -1) {
|
||||||
electronKey += "Alt+";
|
electronKey += "Alt+";
|
||||||
}
|
}
|
||||||
return electronKey + key.replace("⌘", "").replace("⇧", "").replace("⌥", "");
|
return electronKey + key.replace("⌘", "").replace("⇧", "").replace("⌥", "").replace("⌃", "");
|
||||||
};
|
};
|
||||||
|
|
||||||
const exitApp = (port, errorWindowId) => {
|
const exitApp = (port, errorWindowId) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user