From 5c7b8cca2d0d678d15e0f5e38364cccb94b0fd07 Mon Sep 17 00:00:00 2001 From: Georgi Gardev Date: Sun, 16 Feb 2025 19:34:00 +0200 Subject: [PATCH] fix altKey --- src/components/widgets/search-widget.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/widgets/search-widget.tsx b/src/components/widgets/search-widget.tsx index 5c90c84..a2a1bc5 100644 --- a/src/components/widgets/search-widget.tsx +++ b/src/components/widgets/search-widget.tsx @@ -42,7 +42,8 @@ export function SearchWidget({ const onKeyPress = (e: React.KeyboardEvent) => { e.stopPropagation(); - if (canOpenApp && e.metaKey && e.key === 'Enter') { + console.log({ e }); + if (canOpenApp && e.altKey && e.key === 'Enter') { onOpenApp(); return; }