diff --git a/Telegram/SourceFiles/chat_helpers/emoji_suggestions_widget.cpp b/Telegram/SourceFiles/chat_helpers/emoji_suggestions_widget.cpp index ab68dac5f..e765a4995 100644 --- a/Telegram/SourceFiles/chat_helpers/emoji_suggestions_widget.cpp +++ b/Telegram/SourceFiles/chat_helpers/emoji_suggestions_widget.cpp @@ -17,6 +17,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include "platform/platform_specific.h" #include "core/application.h" #include "core/event_filter.h" +#include "auth_session.h" #include "styles/style_chat_helpers.h" namespace Ui { @@ -274,7 +275,8 @@ void SuggestionsWidget::keyPressEvent(QKeyEvent *e) { bool SuggestionsWidget::handleKeyEvent(int key) { if (key == Qt::Key_Enter || key == Qt::Key_Return) { return triggerSelectedRow(); - } else if (key == Qt::Key_Tab) { + } else if (key == Qt::Key_Tab + && (!AuthSession::Exists() || !Auth().supportMode())) { if (_selected < 0 || _selected >= _rows.size()) { setSelected(0); }