fix timeline focus

This commit is contained in:
Jedi18 2021-02-23 00:46:40 +05:30
parent b1dec6f6ac
commit ee232c5c60
3 changed files with 8 additions and 0 deletions

View file

@ -79,6 +79,7 @@ Page {
sequence: "Ctrl+L"
onActivated: {
var quickSwitch = quickSwitcherComponent.createObject(timelineRoot);
TimelineManager.focusTimeline()
quickSwitch.open();
}
}

View file

@ -588,3 +588,9 @@ TimelineViewManager::completerFor(QString completerName, QString roomId)
}
return nullptr;
}
void
TimelineViewManager::focusTimeline()
{
getWidget()->setFocus();
}

View file

@ -101,6 +101,7 @@ public slots:
void setHistoryView(const QString &room_id);
void highlightRoom(const QString &room_id);
void focusTimeline();
TimelineModel *getHistoryView(const QString &room_id)
{
auto room = models.find(room_id);