From 632639d581be918be62346562ce1deaf1b36cfb5 Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 30 Sep 2024 13:45:00 +0400 Subject: [PATCH] Allow custom tab action on all autocomplete fields. Fixes #28455. --- Telegram/SourceFiles/chat_helpers/field_autocomplete.cpp | 1 + Telegram/SourceFiles/chat_helpers/message_field.cpp | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/chat_helpers/field_autocomplete.cpp b/Telegram/SourceFiles/chat_helpers/field_autocomplete.cpp index b3a9250d8..64db33d13 100644 --- a/Telegram/SourceFiles/chat_helpers/field_autocomplete.cpp +++ b/Telegram/SourceFiles/chat_helpers/field_autocomplete.cpp @@ -1662,6 +1662,7 @@ void InitFieldAutocomplete( const auto field = descriptor.field; field->rawTextEdit()->installEventFilter(raw); + field->customTab(true); raw->mentionChosen( ) | rpl::start_with_next([=](FieldAutocomplete::MentionChosen data) { diff --git a/Telegram/SourceFiles/chat_helpers/message_field.cpp b/Telegram/SourceFiles/chat_helpers/message_field.cpp index 4485a94d0..713687f18 100644 --- a/Telegram/SourceFiles/chat_helpers/message_field.cpp +++ b/Telegram/SourceFiles/chat_helpers/message_field.cpp @@ -581,7 +581,6 @@ void InitMessageField( [=] { return show->paused(ChatHelpers::PauseReason::Any); }, std::move(allowPremiumEmoji)); InitMessageFieldGeometry(field); - field->customTab(true); } void InitMessageField(