From 80b02d1ae10f51a2286e065e4a8f860091b2b05c Mon Sep 17 00:00:00 2001 From: Sargam Date: Tue, 24 Sep 2024 02:48:48 +0530 Subject: [PATCH] Update src/components/search/SearchBar.tsx --- src/components/search/SearchBar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/search/SearchBar.tsx b/src/components/search/SearchBar.tsx index a06560fd4..6859cef16 100644 --- a/src/components/search/SearchBar.tsx +++ b/src/components/search/SearchBar.tsx @@ -50,7 +50,7 @@ export function SearchBar() { const handleKeyPress = (event: KeyboardEvent) => { switch (event.code) { case 'KeyK': - if (event.ctrlKey) { + if (event.ctrlKey || e.metaKey) { event.preventDefault(); setDialogOpen((prev) => !prev); }