Vanessa 2024-03-26 17:10:05 +08:00
parent 344d49b1a8
commit ccb51eadd0

View file

@ -75,7 +75,7 @@ const hotKey2Electron = (key) => {
if (key.indexOf("⌥") > -1) { if (key.indexOf("⌥") > -1) {
electronKey += "Alt+"; electronKey += "Alt+";
} }
return electronKey + key.substr(key.length - 1); return electronKey + key.replace("⌘", "").replace("⇧", "").replace("⌥", "");
}; };
const exitApp = (port, errorWindowId) => { const exitApp = (port, errorWindowId) => {