summary refs log tree commit diff
diff options
context:
space:
mode:
authorLoren Burkholder <computersemiexpert@outlook.com>2022-04-02 20:28:44 -0400
committerLoren Burkholder <computersemiexpert@outlook.com>2022-04-02 20:33:10 -0400
commit35e6cf003d8d43e4866836f69679f12ec2c2c76f (patch)
tree370b4a3fa4d25646a764c02477b6727ed12cc4dc
parentMerge pull request #1036 from Nheko-Reborn/fixCreateDirectChat (diff)
downloadnheko-35e6cf003d8d43e4866836f69679f12ec2c2c76f.tar.xz
Close current room on Ctrl+W
-rw-r--r--man/nheko.1.adoc3
-rw-r--r--resources/qml/TimelineView.qml5
2 files changed, 8 insertions, 0 deletions
diff --git a/man/nheko.1.adoc b/man/nheko.1.adoc

index bef889e3..0a1b1568 100644 --- a/man/nheko.1.adoc +++ b/man/nheko.1.adoc
@@ -84,6 +84,9 @@ an emoji will add HTML code for the inline image into the input line. *Ctrl-Up/Ctrl-Down*:: Navigate within the room list. +*Ctrl-W*:: +Close the currently open room. + *Ctrl-K*:: Search and select rooms from the room list. 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