Commit d6cdfc97 authored by Luke Schoen's avatar Luke Schoen Committed by Thibaut Sardan
Browse files

fix: Fixes #459. Use default role for Edit menu on macOS (#460)

* fix: Fixes #459. Use default role for Edit menu on macOS

* refactor: Remove double quotes

* refactor: Try fix linting so single quote and not complain no-sparse-arrays
parent 877b6e58
Pipeline #32271 passed with stages
in 14 minutes and 45 seconds
......@@ -32,6 +32,23 @@ const getMenubarMenuTemplate = fetherApp => {
submenu: [{ role: 'quit' }]
};
/* eslint-disable no-sparse-arrays */
const editTabMacOS = {
label: 'Edit',
submenu: [
{ role: 'undo' },
{ role: 'redo' },
{ type: 'separator' },
{ role: 'cut' },,
{ role: 'copy' },
{ role: 'paste' },
{ type: 'separator' },
{ role: 'delete' },
{ role: 'selectall' }
]
};
/* eslint-enable no-sparse-arrays */
/**
* On win32 we need to use `webContents` to make some of the menu items
* functional (whereas it is not required on Linux and macOS).
......@@ -101,7 +118,7 @@ const getMenubarMenuTemplate = fetherApp => {
let template = [
fileTab,
editTab,
process.platform === 'darwin' ? editTabMacOS : editTab,
process.platform === 'win32' ? viewTabWindowsOS : viewTab,
windowTab,
helpTab
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment