From 12e3c42888879275c53e9044749409af62f2cd88 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Sun, 9 Jan 2022 12:30:08 +0100 Subject: Move key bindings to a more usual shortcut gThumb is confused. --- fiv.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fiv.c b/fiv.c index 8a3021e..8af0cc5 100644 --- a/fiv.c +++ b/fiv.c @@ -72,7 +72,7 @@ struct key_section { }; static struct key help_keys_general[] = { - {"F1 F1", "Show this list of shortcuts"}, + {"F1 question", "Show this list of shortcuts"}, {"F11 f", "Toggle fullscreen view"}, {"d", "Toggle dark theme variant"}, {"q q", "Exit the program"}, @@ -776,6 +776,7 @@ on_key_press(G_GNUC_UNUSED GtkWidget *widget, GdkEventKey *event, } break; case GDK_CONTROL_MASK: + case GDK_CONTROL_MASK | GDK_SHIFT_MASK: switch (event->keyval) { case GDK_KEY_h: gtk_button_clicked(GTK_BUTTON(g.funnel)); @@ -798,7 +799,7 @@ on_key_press(G_GNUC_UNUSED GtkWidget *widget, GdkEventKey *event, gtk_widget_destroy(g.window); return TRUE; - case GDK_KEY_F1: + case GDK_KEY_question: show_help_shortcuts(); return TRUE; } -- cgit v1.2.3-70-g09d2