From c379b0fec27bc83a6b0a128b66e2d40c56a8dffb Mon Sep 17 00:00:00 2001 From: Jakub Kracina Date: Sun, 21 Jun 2026 16:36:13 +0200 Subject: [PATCH] Close command palette with the same shortcut --- src/features/dashboard/sidebar/command.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/features/dashboard/sidebar/command.tsx b/src/features/dashboard/sidebar/command.tsx index 1ee3635d2..7a86dbf89 100644 --- a/src/features/dashboard/sidebar/command.tsx +++ b/src/features/dashboard/sidebar/command.tsx @@ -38,8 +38,7 @@ export default function DashboardSidebarCommand({ useKeydown((event) => { if (event.key === 'k' && (event.metaKey || event.ctrlKey)) { event.preventDefault() - event.stopPropagation() - setOpen(true) + setOpen((prev) => !prev) } return true @@ -72,7 +71,7 @@ export default function DashboardSidebarCommand({ - + No results found. {SIDEBAR_ALL_LINKS.map((link) => (