From 69036967ffbd4fdfd4d4ba01984a2416a7c03378 Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Mon, 14 Aug 2017 18:25:43 +0300 Subject: Focus on the text input when switching rooms --- include/TextInputWidget.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/TextInputWidget.h b/include/TextInputWidget.h index 225750f2..7fae4ae0 100644 --- a/include/TextInputWidget.h +++ b/include/TextInputWidget.h @@ -46,6 +46,7 @@ public: public slots: void onSendButtonClicked(); + inline void focusLineEdit(); private slots: void addSelectedEmoji(const QString &emoji); @@ -64,3 +65,8 @@ private: FlatButton *send_message_button_; EmojiPickButton *emoji_button_; }; + +inline void TextInputWidget::focusLineEdit() +{ + input_->setFocus(); +} -- cgit 1.5.1