#406 keyboard shortcut to show/hide sidebar

This commit is contained in:
Jan Prochazka
2022-11-10 11:36:31 +01:00
parent 4fa043b7e5
commit ed71ef312d
10 changed files with 60 additions and 18 deletions

View File

@@ -6,6 +6,7 @@ import {
getExtensions,
getVisibleToolbar,
visibleToolbar,
visibleWidgetSideBar,
} from '../stores';
import registerCommand from './registerCommand';
import { get } from 'svelte/store';
@@ -83,6 +84,15 @@ registerCommand({
onClick: () => showModal(AboutModal),
});
registerCommand({
id: 'toggle.sidebar',
category: 'Sidebar',
name: 'Show',
toolbarName: 'Toggle sidebar',
keyText: 'CtrlOrCommand+B',
onClick: () => visibleWidgetSideBar.update(x => !x),
});
registerCommand({
id: 'new.connection',
toolbar: true,