Close current room on Ctrl+W

This commit is contained in:
Loren Burkholder 2022-04-02 20:28:44 -04:00
parent 747fe6408d
commit 35e6cf003d
2 changed files with 8 additions and 0 deletions

View File

@ -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.

View File

@ -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