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