mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +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*::
|
*Ctrl-Up/Ctrl-Down*::
|
||||||
Navigate within the room list.
|
Navigate within the room list.
|
||||||
|
|
||||||
|
*Ctrl-W*::
|
||||||
|
Close the currently open room.
|
||||||
|
|
||||||
*Ctrl-K*::
|
*Ctrl-K*::
|
||||||
Search and select rooms from the room list.
|
Search and select rooms from the room list.
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,11 @@ Item {
|
||||||
property bool showBackButton: false
|
property bool showBackButton: false
|
||||||
clip: true
|
clip: true
|
||||||
|
|
||||||
|
Shortcut {
|
||||||
|
sequence: StandardKey.Close
|
||||||
|
onActivated: Rooms.resetCurrentRoom()
|
||||||
|
}
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
visible: !room && !TimelineManager.isInitialSync && (!roomPreview || !roomPreview.roomid)
|
visible: !room && !TimelineManager.isInitialSync && (!roomPreview || !roomPreview.roomid)
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
|
|
Loading…
Reference in a new issue