[gnome-characters/bilelmoussaoui/gtk4: 41/76] character dialog: close with escape
- From: Bilal Elmoussaoui <bilelmoussaoui src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-characters/bilelmoussaoui/gtk4: 41/76] character dialog: close with escape
- Date: Fri, 26 Nov 2021 08:59:06 +0000 (UTC)
commit 07351e2833c7b8815f0a65fcd69ac159d6e00d1a
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]