mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-03-01 12:00:48 +00:00
Hide reply keyboard if started typing.
This commit is contained in:
parent
1e63a6a1a7
commit
73af96e9c3
@ -1597,6 +1597,12 @@ void HistoryWidget::fieldChanged() {
|
||||
updateSendButtonType();
|
||||
if (!HasSendText(_field)) {
|
||||
_previewState = Data::PreviewState::Allowed;
|
||||
_fieldIsEmpty = true;
|
||||
} else if (_fieldIsEmpty) {
|
||||
_fieldIsEmpty = false;
|
||||
if (_kbShown) {
|
||||
toggleKeyboard();
|
||||
}
|
||||
}
|
||||
if (updateCmdStartShown()) {
|
||||
updateControlsVisibility();
|
||||
|
@ -743,6 +743,7 @@ private:
|
||||
bool _inClickable = false;
|
||||
|
||||
bool _kbShown = false;
|
||||
bool _fieldIsEmpty = true;
|
||||
HistoryItem *_kbReplyTo = nullptr;
|
||||
object_ptr<Ui::ScrollArea> _kbScroll;
|
||||
const not_null<BotKeyboard*> _keyboard;
|
||||
|
Loading…
Reference in New Issue
Block a user