Skip to content

Commit

Permalink
fix #1152 add ctrl-s to toggle sidebar.
Browse files Browse the repository at this point in the history
  • Loading branch information
karlkleinpaste committed Feb 17, 2025
1 parent d595afc commit 66e7cd1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gtk/main_window.c
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,9 @@ static gboolean on_vbox1_key_press_event(GtkWidget *widget, GdkEventKey *event,

case XK_s:
case XK_S:
if (state == GDK_MOD1_MASK) // Alt-S strong's
if (state == GDK_CONTROL_MASK) // Ctrl-S toggle sidebar
on_sidebar_showhide_activate((GtkMenuItem *)NULL, (gpointer)NULL);
else if (state == GDK_MOD1_MASK) // Alt-S strong's
{
kbd_toggle_option(((main_check_for_global_option(sM, "GBFStrongs")) ||
(main_check_for_global_option(sM, "ThMLStrongs")) ||
Expand Down

0 comments on commit 66e7cd1

Please sign in to comment.