Skip to content

Commit

Permalink
Fix menu bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Lleyton Gray committed Dec 7, 2021
1 parent 5c6419e commit 5bf7b67
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "skye",
"version": "6.3.1",
"version": "6.3.2",
"sideEffects": false,
"description": "Extensible, fast and innovative web browser with Innatical UI.",
"keywords": [
Expand Down
25 changes: 13 additions & 12 deletions src/main/menus/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,16 +122,19 @@ export const getMainMenu = () => {
'Print',
),

...(!isMac ? [{ role: 'quit' }] : [{}]),
...(!isMac ? [{ role: 'quit' }] : []),

// Hidden items

// Focus address bar
...createMenuItem(['Ctrl+Space', 'CmdOrCtrl+L', 'Alt+D', 'F6'], async () => {
await Application.instance.dialogs
.getPersistent('search')
.show(Application.instance.windows.current.win);
}),
...createMenuItem(
['Ctrl+Space', 'CmdOrCtrl+L', 'Alt+D', 'F6'],
async () => {
await Application.instance.dialogs
.getPersistent('search')
.show(Application.instance.windows.current.win);
},
),

// Toggle menu
...createMenuItem(['Alt+F', 'Alt+E'], () => {
Expand Down Expand Up @@ -196,9 +199,8 @@ export const getMainMenu = () => {
...createMenuItem(
isMac ? ['Cmd+[', 'Cmd+Left'] : ['Alt+Left'],
() => {
const {
selected,
} = Application.instance.windows.current.viewManager;
const { selected } =
Application.instance.windows.current.viewManager;
if (selected) {
selected.webContents.goBack();
}
Expand All @@ -208,9 +210,8 @@ export const getMainMenu = () => {
...createMenuItem(
isMac ? ['Cmd+]', 'Cmd+Right'] : ['Alt+Right'],
() => {
const {
selected,
} = Application.instance.windows.current.viewManager;
const { selected } =
Application.instance.windows.current.viewManager;
if (selected) {
selected.webContents.goForward();
}
Expand Down

0 comments on commit 5bf7b67

Please sign in to comment.