diff options
-rw-r--r-- | roi.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -175,12 +175,14 @@ key_event(GtkWidget *widget, GdkEventKey *event, gpointer userdata) switch (event->type) { case GDK_KEY_RELEASE: switch (event->keyval) { - case 'd': + case GDK_KEY_d: + case GDK_KEY_D: g_object_unref(roi->modified_input); roi->modified_input = NULL; gtk_widget_queue_draw(roi->drawing_area); break; - case 'q': + case GDK_KEY_q: + case GDK_KEY_Q: gtk_main_quit(); break; } |