mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
This commit is contained in:
parent
5ad9de9541
commit
d8ee9f357f
1 changed files with 4 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue