From 9dc9152e075804200158a1f6c6fb8f6e10961221 Mon Sep 17 00:00:00 2001 From: Loren Burkholder Date: Sat, 24 Jul 2021 18:38:22 -0400 Subject: [PATCH] Close dialog on escape --- resources/qml/ReadReceipts.qml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/resources/qml/ReadReceipts.qml b/resources/qml/ReadReceipts.qml index 0756a2e7..da2a5f66 100644 --- a/resources/qml/ReadReceipts.qml +++ b/resources/qml/ReadReceipts.qml @@ -21,6 +21,11 @@ ApplicationWindow { palette: Nheko.colors color: Nheko.colors.window + Shortcut { + sequence: StandardKey.Cancel + onActivated: readReceiptsRoot.close() + } + ColumnLayout { anchors.fill: parent anchors.margins: Nheko.paddingMedium