Merge pull request #1037 from Nheko-Reborn/closeOnCtrlW

Close current room on Ctrl+W
This commit is contained in:
DeepBlueV7.X 2022-04-03 02:35:25 +02:00 committed by GitHub
commit d3c7b0358c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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