[gnome-characters/bilelmoussaoui/gtk4] character dialog: close with escape
- From: Bilal Elmoussaoui <bilelmoussaoui src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-characters/bilelmoussaoui/gtk4] character dialog: close with escape
- Date: Tue, 23 Nov 2021 07:58:49 +0000 (UTC)
commit 07fba84544fb3d1d694a1e79b0cc186c6f161f24
Author: Bilal Elmoussaoui <bil elmoussaoui gmail com>
Date: Tue Nov 23 08:21:48 2021 +0100
character dialog: close with escape
data/character_dialog.ui | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/data/character_dialog.ui b/data/character_dialog.ui
index c95431b..e5e158b 100644
--- a/data/character_dialog.ui
+++ b/data/character_dialog.ui
@@ -166,7 +166,16 @@
</property>
</object>
</child>
+ <child>
+ <object class='GtkShortcutController'>
+ <property name='scope'>global</property>
+ <child>
+ <object class='GtkShortcut'>
+ <property name='trigger'>Escape</property>
+ <property name='action'>action(window.close)</property>
+ </object>
+ </child>
+ </object>
+ </child>
</template>
</interface>
-
-
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]