Commit 3005b194df65a28b27f0ee8583b9f3dc9b821f70
swap back and forward menu items to match chrome order
#802Matt McKegg committed on 5/14/2018, 12:54:52 AM
Parent: 903ae57ad0b262c3a6121da6deca07aad6f1ab66
Files changed
index.js | changed |
index.js | |||
---|---|---|---|
@@ -51,19 +51,19 @@ | |||
51 | 51 … | menu.splice(4, 0, { | |
52 | 52 … | label: 'History', | |
53 | 53 … | submenu: [ | |
54 | 54 … | { | |
55 | - label: 'Forward', | ||
56 | - accelerator: 'CmdOrCtrl+]', | ||
55 … | + label: 'Back', | ||
56 … | + accelerator: 'CmdOrCtrl+[', | ||
57 | 57 … | click: () => { | |
58 | - browserWindow.webContents.send('goForward') | ||
58 … | + browserWindow.webContents.send('goBack') | ||
59 | 59 … | } | |
60 | 60 … | }, | |
61 | 61 … | { | |
62 | - label: 'Back', | ||
63 | - accelerator: 'CmdOrCtrl+[', | ||
62 … | + label: 'Forward', | ||
63 … | + accelerator: 'CmdOrCtrl+]', | ||
64 | 64 … | click: () => { | |
65 | - browserWindow.webContents.send('goBack') | ||
65 … | + browserWindow.webContents.send('goForward') | ||
66 | 66 … | } | |
67 | 67 … | } | |
68 | 68 … | ] | |
69 | 69 … | }) |
Built with git-ssb-web