summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--roi.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/roi.c b/roi.c
index 24db32b..9a3d078 100644
--- a/roi.c
+++ b/roi.c
@@ -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;
}