Skip to content

Commit c06033a

Browse files
committed
webui : add keyboard shortcut to toggle sidebar
This commit adds a keyboard shortcut CTRL+SHIFT+S to toggle the sidebar. The motivation for this is this is often possible with other chat applications and I think improves usability.
1 parent 08416eb commit c06033a

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

tools/server/public/index.html.gz

26 Bytes
Binary file not shown.

tools/server/webui/src/routes/+layout.svelte

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@
5656
chatSidebar.editActiveConversation();
5757
}
5858
}
59+
60+
if (event.shiftKey && isCtrlOrCmd && (event.key === 's' || event.key === 'S')) {
61+
event.preventDefault();
62+
sidebarOpen = !sidebarOpen;
63+
}
5964
}
6065
6166
function handleTitleUpdateCancel() {

0 commit comments

Comments
 (0)