fix: enable copy-paste hotkeys for mac os

This commit is contained in:
4gray committed 2020-09-06 13:19:41 +02:00
1 parent 8e8c107ca7
commit 4357c17293
1 file changed
+16
+16
View File
@@ -114,6 +114,22 @@ function createMenu(win: BrowserWindow) {
],
})
);
// copy-paste shortcuts workaround for mac os
if (process.platform === 'darwin') {
menu.append(
new MenuItem({
label: 'Edit',
submenu: [
{ role: 'cut' },
{ role: 'copy' },
{ role: 'paste' },
{ role: 'delete' },
],
})
);
}
return menu;
}