From cbea850d926747c94dc999d773e7232e813743eb Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Sat, 9 Jul 2022 02:32:34 +0200 Subject: [PATCH] =?UTF-8?q?Support=20`=E2=8C=98+0`=20hotkey=20for=20openin?= =?UTF-8?q?g=20Saved=20Messages=20(#1947)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/left/LeftColumn.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/left/LeftColumn.tsx b/src/components/left/LeftColumn.tsx index af5a6d113..e388ca2be 100644 --- a/src/components/left/LeftColumn.tsx +++ b/src/components/left/LeftColumn.tsx @@ -318,7 +318,7 @@ const LeftColumn: FC = ({ const handleHotkeySavedMessages = useCallback((e: KeyboardEvent) => { e.preventDefault(); - openChat({ id: currentUserId }); + openChat({ id: currentUserId, shouldReplaceHistory: true }); }, [currentUserId, openChat]); const handleHotkeySettings = useCallback((e: KeyboardEvent) => { @@ -329,6 +329,7 @@ const LeftColumn: FC = ({ useHotkeys({ 'Mod+Shift+F': handleHotkeySearch, 'Mod+Shift+S': handleHotkeySavedMessages, + 'Mod+0': handleHotkeySavedMessages, ...(IS_MAC_OS && IS_PWA && { 'Mod+,': handleHotkeySettings }), });