From 5d04aa504ed726e686b54acd2514e39fc5485d57 Mon Sep 17 00:00:00 2001 From: toniz4 Date: Sun, 2 Aug 2020 01:08:02 -0300 Subject: Quit with both esc and q --- dragon.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dragon.c b/dragon.c index 4ca2f81..c388930 100644 --- a/dragon.c +++ b/dragon.c @@ -412,6 +412,8 @@ int main (int argc, char **argv) { closure = g_cclosure_new(G_CALLBACK(do_quit), NULL, NULL); accelgroup = gtk_accel_group_new(); gtk_accel_group_connect(accelgroup, GDK_KEY_Escape, 0, 0, closure); + closure = g_cclosure_new(G_CALLBACK(do_quit), NULL, NULL); + gtk_accel_group_connect(accelgroup, GDK_KEY_q, 0, 0, closure); gtk_window_add_accel_group(GTK_WINDOW(window), accelgroup); gtk_window_set_title(GTK_WINDOW(window), "Run"); -- cgit