[gnome-characters/bilelmoussaoui/gtk4: 40/71] character dialog: close with escape
- From: Bilal Elmoussaoui <bilelmoussaoui src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-characters/bilelmoussaoui/gtk4: 40/71] character dialog: close with escape
- Date: Thu, 25 Nov 2021 11:03:11 +0000 (UTC)
commit 7f54c1dcd5b1b1c12a73d2f5d15bd04cf360db98
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]