1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-11 18:24:43 +02:00

Merge pull request #428 from Abijeet/master

Add the toggle sidebar option to the View app menu bar.
This commit is contained in:
Laurent Cozic 2018-04-17 11:17:24 +02:00 committed by GitHub
commit bcb1f36ad8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -395,6 +395,16 @@ class Application extends BaseApplication {
}, {
label: _('View'),
submenu: [{
label: _('Toggle sidebar'),
screens: ['Main'],
accelerator: 'F10',
click: () => {
this.dispatch({
type: 'WINDOW_COMMAND',
name: 'toggleSidebar',
});
}
}, {
label: _('Toggle editor layout'),
screens: ['Main'],
accelerator: 'CommandOrControl+L',
@ -644,4 +654,4 @@ function app() {
return application_;
}
module.exports = { app };
module.exports = { app };