Close current room on Ctrl+W

pull/1037/head
Loren Burkholder 3 years ago
parent 747fe6408d
commit 35e6cf003d
  1. 3
      man/nheko.1.adoc
  2. 5
      resources/qml/TimelineView.qml

@ -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…
Cancel
Save