Focus on the text input when switching rooms
This commit is contained in:
parent
9c28ba28a8
commit
69036967ff
2 changed files with 7 additions and 0 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue