From 107997f40b50199c14e3d4e84bb7e8d9a746a570 Mon Sep 17 00:00:00 2001 From: Ajay Bura <32841439+ajbura@users.noreply.github.com> Date: Wed, 27 Aug 2025 17:22:59 +0530 Subject: [PATCH] fix hotkey for macos --- src/app/features/search/Search.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/features/search/Search.tsx b/src/app/features/search/Search.tsx index 154dde70..ffda50d0 100644 --- a/src/app/features/search/Search.tsx +++ b/src/app/features/search/Search.tsx @@ -58,6 +58,8 @@ import { searchModalAtom } from '../../state/searchModal'; import { useKeyDown } from '../../hooks/useKeyDown'; import navigation from '../../../client/state/navigation'; import { useMediaAuthentication } from '../../hooks/useMediaAuthentication'; +import { KeySymbol } from '../../utils/key-symbol'; +import { isMacOS } from '../../utils/user-agent'; enum SearchRoomType { Rooms = '#', @@ -409,7 +411,7 @@ export function Search({ requestClose }: SearchProps) { Type # for rooms, @ for DMs and * for spaces. Hotkey:{' '} - Ctrl + k + {isMacOS() ? KeySymbol.Command : 'Ctrl'} + k