mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +03:00
fix timeline focus
This commit is contained in:
parent
b1dec6f6ac
commit
ee232c5c60
3 changed files with 8 additions and 0 deletions
|
@ -79,6 +79,7 @@ Page {
|
||||||
sequence: "Ctrl+L"
|
sequence: "Ctrl+L"
|
||||||
onActivated: {
|
onActivated: {
|
||||||
var quickSwitch = quickSwitcherComponent.createObject(timelineRoot);
|
var quickSwitch = quickSwitcherComponent.createObject(timelineRoot);
|
||||||
|
TimelineManager.focusTimeline()
|
||||||
quickSwitch.open();
|
quickSwitch.open();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -587,4 +587,10 @@ TimelineViewManager::completerFor(QString completerName, QString roomId)
|
||||||
return proxy;
|
return proxy;
|
||||||
}
|
}
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
TimelineViewManager::focusTimeline()
|
||||||
|
{
|
||||||
|
getWidget()->setFocus();
|
||||||
}
|
}
|
|
@ -101,6 +101,7 @@ public slots:
|
||||||
|
|
||||||
void setHistoryView(const QString &room_id);
|
void setHistoryView(const QString &room_id);
|
||||||
void highlightRoom(const QString &room_id);
|
void highlightRoom(const QString &room_id);
|
||||||
|
void focusTimeline();
|
||||||
TimelineModel *getHistoryView(const QString &room_id)
|
TimelineModel *getHistoryView(const QString &room_id)
|
||||||
{
|
{
|
||||||
auto room = models.find(room_id);
|
auto room = models.find(room_id);
|
||||||
|
|
Loading…
Reference in a new issue