Move key bindings to a more usual shortcut

gThumb is confused.
This commit is contained in:
Přemysl Eric Janouch 2022-01-09 12:30:08 +01:00
parent 146c5c6977
commit 12e3c42888
Signed by: p
GPG Key ID: A0420B94F92B9493

5
fiv.c
View File

@ -72,7 +72,7 @@ struct key_section {
};
static struct key help_keys_general[] = {
{"F1 <control>F1", "Show this list of shortcuts"},
{"F1 <control>question", "Show this list of shortcuts"},
{"F11 f", "Toggle fullscreen view"},
{"<alt><shift>d", "Toggle dark theme variant"},
{"q <control>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;
}