summary refs log tree commit diff
path: root/resources
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2022-04-03 02:35:25 +0200
committerGitHub <noreply@github.com>2022-04-03 02:35:25 +0200
commitd3c7b0358c8d15a7ce107e567501315a035d9bf0 (patch)
tree370b4a3fa4d25646a764c02477b6727ed12cc4dc /resources
parentMerge pull request #1036 from Nheko-Reborn/fixCreateDirectChat (diff)
parentClose current room on Ctrl+W (diff)
downloadnheko-d3c7b0358c8d15a7ce107e567501315a035d9bf0.tar.xz
Merge pull request #1037 from Nheko-Reborn/closeOnCtrlW
Close current room on Ctrl+W
Diffstat (limited to 'resources')
-rw-r--r--resources/qml/TimelineView.qml5
1 files changed, 5 insertions, 0 deletions
diff --git a/resources/qml/TimelineView.qml b/resources/qml/TimelineView.qml

index 023de8f0..6d0773a4 100644 --- a/resources/qml/TimelineView.qml +++ b/resources/qml/TimelineView.qml
@@ -25,6 +25,11 @@ Item { property bool showBackButton: false clip: true + Shortcut { + sequence: StandardKey.Close + onActivated: Rooms.resetCurrentRoom() + } + Label { visible: !room && !TimelineManager.isInitialSync && (!roomPreview || !roomPreview.roomid) anchors.centerIn: parent