From 8c98df1ea115a6f49aea27df735f90fa42c091e3 Mon Sep 17 00:00:00 2001 From: Chneemann Date: Fri, 7 Aug 2026 15:55:40 +0200 Subject: [PATCH] feat: make ESC button interactive to close modal on mouse click --- src/components/CommandPalette.tsx | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/components/CommandPalette.tsx b/src/components/CommandPalette.tsx index 5087c6a..1a0d14d 100644 --- a/src/components/CommandPalette.tsx +++ b/src/components/CommandPalette.tsx @@ -116,9 +116,13 @@ export default function CommandPalette() { onKeyDown={handleInputKeyDown} className="w-full bg-transparent text-slate-100 placeholder-slate-500 outline-none text-sm tracking-wide font-mono" /> - + {/* Command List */} @@ -171,20 +175,20 @@ export default function CommandPalette() {
{tCommands("navHint1")}{" "} - + {" "} - + {" "} {tCommands("navHint2")} - + ⌘K {" "} /{" "} - + Ctrl+K