summary refs log tree commit diff
path: root/resources/qml
diff options
context:
space:
mode:
authorkamathmanu <manuriddle@gmail.com>2021-08-07 15:08:38 -0400
committerkamathmanu <manuriddle@gmail.com>2021-08-07 17:00:28 -0400
commit34ffe054cf767a15f03d30b4839f08144648080f (patch)
tree44b25b9be99eaed59cb85f2bc3a9dd27573d8381 /resources/qml
parentmake lint (diff)
downloadnheko-34ffe054cf767a15f03d30b4839f08144648080f.tar.xz
Improve window closing
Diffstat (limited to 'resources/qml')
-rw-r--r--resources/qml/RoomDirectory.qml7
1 files changed, 6 insertions, 1 deletions
diff --git a/resources/qml/RoomDirectory.qml b/resources/qml/RoomDirectory.qml
index 94bfceb2..f31df64d 100644
--- a/resources/qml/RoomDirectory.qml
+++ b/resources/qml/RoomDirectory.qml
@@ -19,9 +19,14 @@ ApplicationWindow {
     palette: Nheko.colors

     color: Nheko.colors.window

     modality: Qt.WindowModal

-    flags: Qt.Dialog

+    flags: Qt.Dialog | Qt.WindowCloseButtonHint

     title: qsTr("Explore Public Rooms")

 

+    Shortcut {

+        sequence: StandardKey.Cancel

+        onActivated: roomDirectoryWindow.close()

+    }

+

     header: RowLayout {

         id: searchBarLayout

         spacing: Nheko.paddingMedium