mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-08 17:06:15 -08:00
fix: enable copy-paste hotkeys for mac os
This commit is contained in:
1 parent
8e8c107ca7
commit
4357c17293
1 file changed
+16
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user