Skip to content
Snippets Groups Projects
Commit 2742f555 authored by Olivier SOLDANO's avatar Olivier SOLDANO Committed by Anthony Léonard
Browse files

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
No related branches found
No related tags found
No related merge requests found
...@@ -804,6 +804,8 @@ CallWidget::showIMOutOfCall(const QModelIndex& nodeIdx) ...@@ -804,6 +804,8 @@ CallWidget::showIMOutOfCall(const QModelIndex& nodeIdx)
ui->sendContactRequestPageButton->setVisible(shouldDisplayInviteButton(*cmVector[0])); ui->sendContactRequestPageButton->setVisible(shouldDisplayInviteButton(*cmVector[0]));
ui->stackedWidget->setCurrentWidget(ui->messagingPage); ui->stackedWidget->setCurrentWidget(ui->messagingPage);
ui->imMessageEdit->clear();
ui->imMessageEdit->setFocus();
disconnect(imClickedConnection_); disconnect(imClickedConnection_);
imClickedConnection_ = connect(ui->listMessageView, &QListView::clicked, [this](const QModelIndex& index) { imClickedConnection_ = connect(ui->listMessageView, &QListView::clicked, [this](const QModelIndex& index) {
auto urlList = index.data(static_cast<int>(Media::TextRecording::Role::LinkList)).value<QList<QUrl>>(); auto urlList = index.data(static_cast<int>(Media::TextRecording::Role::LinkList)).value<QList<QUrl>>();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment