Commit 2742f555 authored by Olivier SOLDANO's avatar Olivier SOLDANO Committed by Anthony Léonard

set focus on message input when showing page

When switching to messaging page the focus is automatically set to
the text input.

Change-Id: I7b01f0e25186e87b260bd82e273f4ea52f31c51d
Reviewed-by: default avatarAnthony Léonard <anthony.leonard@savoirfairelinux.com>
parent 09ef23ac
......@@ -804,6 +804,8 @@ CallWidget::showIMOutOfCall(const QModelIndex& nodeIdx)
ui->sendContactRequestPageButton->setVisible(shouldDisplayInviteButton(*cmVector[0]));
ui->stackedWidget->setCurrentWidget(ui->messagingPage);
ui->imMessageEdit->clear();
ui->imMessageEdit->setFocus();
disconnect(imClickedConnection_);
imClickedConnection_ = connect(ui->listMessageView, &QListView::clicked, [this](const QModelIndex& index) {
auto urlList = index.data(static_cast<int>(Media::TextRecording::Role::LinkList)).value<QList<QUrl>>();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment