From d2c30cf314bca7766507f7489adfd5aaf19700dd Mon Sep 17 00:00:00 2001 From: Nikhil M Warrier Date: Tue, 3 Mar 2026 14:31:09 +0530 Subject: Add new color scheme, logo --- src/components/react/SearchButton.tsx | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src/components/react') diff --git a/src/components/react/SearchButton.tsx b/src/components/react/SearchButton.tsx index 17aad93..01a33c9 100644 --- a/src/components/react/SearchButton.tsx +++ b/src/components/react/SearchButton.tsx @@ -12,10 +12,11 @@ const SearchButton: React.FC = () => { const handleKeyDown = (e: KeyboardEvent) => { // Don't trigger if user is typing in an input, textarea, or contenteditable const target = e.target as HTMLElement - const isInput = target.tagName === 'INPUT' || - target.tagName === 'TEXTAREA' || - target.isContentEditable - + const isInput = + target.tagName === 'INPUT' || + target.tagName === 'TEXTAREA' || + target.isContentEditable + if ((e.metaKey || e.ctrlKey) && e.key === 'k' && !isInput) { e.preventDefault() setIsOpen(true) @@ -29,16 +30,17 @@ const SearchButton: React.FC = () => { return ( -- cgit v1.2.3