mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 12:38:48 +03:00
Merge pull request #1037 from Nheko-Reborn/closeOnCtrlW
Close current room on Ctrl+W
This commit is contained in:
commit
d3c7b0358c
2 changed files with 8 additions and 0 deletions
|
@ -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.
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue