mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Hide reply keyboard if started typing.
This commit is contained in:
parent
1e63a6a1a7
commit
73af96e9c3
2 changed files with 7 additions and 0 deletions
|
@ -1597,6 +1597,12 @@ void HistoryWidget::fieldChanged() {
|
||||||
updateSendButtonType();
|
updateSendButtonType();
|
||||||
if (!HasSendText(_field)) {
|
if (!HasSendText(_field)) {
|
||||||
_previewState = Data::PreviewState::Allowed;
|
_previewState = Data::PreviewState::Allowed;
|
||||||
|
_fieldIsEmpty = true;
|
||||||
|
} else if (_fieldIsEmpty) {
|
||||||
|
_fieldIsEmpty = false;
|
||||||
|
if (_kbShown) {
|
||||||
|
toggleKeyboard();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (updateCmdStartShown()) {
|
if (updateCmdStartShown()) {
|
||||||
updateControlsVisibility();
|
updateControlsVisibility();
|
||||||
|
|
|
@ -743,6 +743,7 @@ private:
|
||||||
bool _inClickable = false;
|
bool _inClickable = false;
|
||||||
|
|
||||||
bool _kbShown = false;
|
bool _kbShown = false;
|
||||||
|
bool _fieldIsEmpty = true;
|
||||||
HistoryItem *_kbReplyTo = nullptr;
|
HistoryItem *_kbReplyTo = nullptr;
|
||||||
object_ptr<Ui::ScrollArea> _kbScroll;
|
object_ptr<Ui::ScrollArea> _kbScroll;
|
||||||
const not_null<BotKeyboard*> _keyboard;
|
const not_null<BotKeyboard*> _keyboard;
|
||||||
|
|
Loading…
Add table
Reference in a new issue