We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d4cd1c5 commit 9843cbfCopy full SHA for 9843cbf
1 file changed
packages/web/src/components/ui/sidebar.tsx
@@ -105,6 +105,15 @@ const SidebarProvider = React.forwardRef<
105
// Adds a keyboard shortcut to toggle the sidebar.
106
React.useEffect(() => {
107
const handleKeyDown = (event: KeyboardEvent) => {
108
+ const target = event.target as HTMLElement
109
+ if (
110
+ target instanceof HTMLInputElement ||
111
+ target instanceof HTMLTextAreaElement ||
112
+ target.isContentEditable
113
+ ) {
114
+ return
115
+ }
116
+
117
if (
118
event.key === SIDEBAR_KEYBOARD_SHORTCUT &&
119
!(event.metaKey || event.ctrlKey)
0 commit comments