passthrough for toggle custom style switch

This commit is contained in:
NunoSempere 2024-04-14 09:14:58 -04:00
parent f5a03f4d05
commit 80424d2854

View File

@ -252,6 +252,12 @@ int handle_shortcut(func id, GtkNotebook* notebook)
webkit_web_view_go_forward(view);
break;
case toggle_custom_style: /* Ctrl s + Ctrl Shift R to reload */
if (custom_style_enabled)
custom_style_enabled = 0;
else
custom_style_enabled = 1;
// break; passthrough
case refresh:
webkit_web_view_reload(view);
break;
@ -310,12 +316,6 @@ int handle_shortcut(func id, GtkNotebook* notebook)
gtk_window_fullscreen(window);
is_fullscreen = !is_fullscreen;
break;
case toggle_custom_style: /* Ctrl s + Ctrl Shift R to reload */
if (custom_style_enabled)
custom_style_enabled = 0;
else
custom_style_enabled = 1;
break;
case show_searchbar:
toggle_bar(notebook, _SEARCH);
break;