From 46fd026a2cc0f9c49b5ef9263a0592d9877da35f Mon Sep 17 00:00:00 2001 From: Ilya Laktyushin Date: Mon, 11 May 2020 04:25:31 +0400 Subject: [PATCH] Add chat search key shortcut --- submodules/TelegramUI/Sources/ChatController.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/submodules/TelegramUI/Sources/ChatController.swift b/submodules/TelegramUI/Sources/ChatController.swift index d60e8e7cc7..1397ba2796 100644 --- a/submodules/TelegramUI/Sources/ChatController.swift +++ b/submodules/TelegramUI/Sources/ChatController.swift @@ -8913,6 +8913,11 @@ public final class ChatControllerImpl: TelegramBaseController, ChatController, G }.updatedInputMode({ _ in ChatInputMode.media(mode: .other, expanded: nil) }) }) } + }), + KeyShortcut(input: "F", modifiers: [.command], action: { [weak self] in + if let strongSelf = self { + strongSelf.beginMessageSearch("") + } }) ]