From 285ade9618c77d8efc6833f00b5ec863ef829279 Mon Sep 17 00:00:00 2001 From: LarsVomMars Date: Tue, 20 Apr 2021 18:43:13 +0200 Subject: Keypress fix --- src/gui.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui.c b/src/gui.c index 193db34..92b1282 100644 --- a/src/gui.c +++ b/src/gui.c @@ -78,7 +78,7 @@ void gui_show_info(const char *text) gtk_widget_destroy(info); } -static void key_event_handler(GtkWidget *widget, GdkEventKey *event, gpointer data) +static gboolean key_event_handler(GtkWidget *widget, GdkEventKey *event, gpointer data) { UNUSED(widget); UNUSED(data); @@ -86,7 +86,9 @@ static void key_event_handler(GtkWidget *widget, GdkEventKey *event, gpointer da // printf("%d\n", event->keyval); if (event->state == 20 && event->keyval == 65293) { // TODO: Softcode numbers gui_call_parser(); + return TRUE; } + return FALSE; } static void gui_activate(GtkApplication *app, gpointer data) -- cgit v1.2.3