Skip to content

Commit

Permalink
Merge pull request #35874 from bernhardoj/feat/35628-desktop-back-for…
Browse files Browse the repository at this point in the history
…ward-shortcut
  • Loading branch information
cead22 authored Feb 9, 2024
2 parents f491194 + 0c71fde commit 9f36805
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions desktop/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,14 @@ const mainWindow = () => {
browserWindow.webContents.goBack();
},
},
{
role: 'back',
visible: false,
accelerator: process.platform === 'darwin' ? 'Cmd+Left' : 'Shift+Left',
click: () => {
browserWindow.webContents.goBack();
},
},
{
id: 'forward',
role: 'forward',
Expand All @@ -418,6 +426,14 @@ const mainWindow = () => {
browserWindow.webContents.goForward();
},
},
{
role: 'forward',
visible: false,
accelerator: process.platform === 'darwin' ? 'Cmd+Right' : 'Shift+Right',
click: () => {
browserWindow.webContents.goForward();
},
},
],
},
{
Expand Down

0 comments on commit 9f36805

Please sign in to comment.