feat(ui): add Mod+B shortcut to toggle sidebar
This commit is contained in:
1 parent
171c7cd8d7
commit
def1cacf77
9 files changed
+25
-1
No files matched your search
@@ -51,6 +51,7 @@ import {
|
||||
isResetZoomShortcut,
|
||||
isRefreshDataShortcut,
|
||||
isSaveShortcut,
|
||||
isToggleSidebarShortcut,
|
||||
isZoomInShortcut,
|
||||
isZoomOutShortcut,
|
||||
} from "@/lib/keyboardShortcuts";
|
||||
@@ -790,6 +791,12 @@ function handleKeydown(e: KeyboardEvent) {
|
||||
void newQuery();
|
||||
return;
|
||||
}
|
||||
if (isToggleSidebarShortcut(e, shortcuts)) {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
setSidebarOpen(!sidebarOpen.value);
|
||||
return;
|
||||
}
|
||||
if (isCloseTabShortcut(e, shortcuts)) {
|
||||
e.preventDefault();
|
||||
if (showDriverStore.value) {
|
||||
|
||||
Reference in new issue
Block a user