From 4357c172932231d50c33ee8bc7decfb5a73d9419 Mon Sep 17 00:00:00 2001 From: 4gray Date: Sun, 6 Sep 2020 13:19:41 +0200 Subject: [PATCH] fix: enable copy-paste hotkeys for mac os --- main.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/main.ts b/main.ts index ee66ca193..9c6bceab8 100644 --- a/main.ts +++ b/main.ts @@ -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; }