diff --git a/electron.js b/electron.js index 25d67b8abd..e0dd1274e7 100644 --- a/electron.js +++ b/electron.js @@ -122,9 +122,15 @@ function createWindow () { submenu: [ { label: 'Table of contents', - click: function () { - win.webContents.send('help'); - } + click: function () { win.webContents.send('help', 'index'); } + }, + { + label: 'Keyboard & Shortcuts', + click: function () { win.webContents.send('help', 'shortcuts'); } + }, + { + label: 'What\'s new', + click: function () { win.webContents.send('help', 'new'); } }, ] }, diff --git a/src/ts/app.tsx b/src/ts/app.tsx index ddd0673954..cce120af7d 100644 --- a/src/ts/app.tsx +++ b/src/ts/app.tsx @@ -237,8 +237,8 @@ class App extends React.Component { Storage.set('debug', debug, true); }); - ipcRenderer.on('help', (e: any) => { - history.push('/help/index'); + ipcRenderer.on('help', (e: any, page: string) => { + history.push('/help/' + page); }); ipcRenderer.on('message', (e: any, text: string, version: string) => {