summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui/window.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/window.c b/src/gui/window.c
index dcdd4d1..24716ed 100644
--- a/src/gui/window.c
+++ b/src/gui/window.c
@@ -79,6 +79,9 @@ static void gtk_framework_window_class_init(GtkFrameworkWindowClass *class)
gtk_widget_class_bind_template_child(widget, GtkFrameworkWindow, grid);
+ /* Active une action native (cf. https://docs.gtk.org/gtk4/class.Window.html#actions) */
+ gtk_widget_class_add_binding_action(widget, GDK_KEY_Q, GDK_CONTROL_MASK, "window.close", NULL);
+
}