1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-11-24 08:12:24 +02:00

Add the toggle sidebar option to the View app menu bar.

Towards #183

Signed-off-by: Abijeet <abijeetpatro@gmail.com>
This commit is contained in:
Abijeet 2018-04-16 22:57:36 +05:30
parent dbb321a3cc
commit 34c65a686c

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',
@ -649,4 +659,4 @@ function app() {
return application_;
}
module.exports = { app };
module.exports = { app };