Merge pull request #1037 from Nheko-Reborn/closeOnCtrlW

Close current room on Ctrl+W
pull/852/head
DeepBlueV7.X 3 years ago committed by GitHub
commit d3c7b0358c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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*::
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…
Cancel
Save