Skip to content

Commit

Permalink
fix: fixing shortcut to open/close sidebar when capslock is active
Browse files Browse the repository at this point in the history
  • Loading branch information
mannoeu authored Nov 15, 2024
1 parent 805ed41 commit bb72c01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/www/registry/default/ui/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const SidebarProvider = React.forwardRef<
React.useEffect(() => {
const handleKeyDown = (event: KeyboardEvent) => {
if (
event.key === SIDEBAR_KEYBOARD_SHORTCUT &&
event.key.toLowerCase() === SIDEBAR_KEYBOARD_SHORTCUT &&
(event.metaKey || event.ctrlKey)
) {
event.preventDefault()
Expand Down

0 comments on commit bb72c01

Please sign in to comment.