summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2017-08-14 18:25:43 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2017-08-14 18:25:43 +0300
commit69036967ffbd4fdfd4d4ba01984a2416a7c03378 (patch)
tree2cf944e5106bc3f690e6ffe447f1bc269f4cdac5 /include
parentUpdate the last sender from the initial pagination (diff)
downloadnheko-69036967ffbd4fdfd4d4ba01984a2416a7c03378.tar.xz
Focus on the text input when switching rooms
Diffstat (limited to 'include')
-rw-r--r--include/TextInputWidget.h6
1 files changed, 6 insertions, 0 deletions
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();
+}