Add a key binding for keeping the zoom/position

This commit is contained in:
Přemysl Eric Janouch 2022-07-17 15:25:56 +02:00
parent 62b1e83541
commit 94f6938b9a
Signed by: p
GPG Key ID: A0420B94F92B9493
2 changed files with 3 additions and 1 deletions

View File

@ -1361,6 +1361,7 @@ fiv_view_class_init(FivViewClass *klass)
bind(bs, GDK_KEY_minus, 0, FIV_VIEW_COMMAND_ZOOM_OUT); bind(bs, GDK_KEY_minus, 0, FIV_VIEW_COMMAND_ZOOM_OUT);
bind(bs, GDK_KEY_w, 0, FIV_VIEW_COMMAND_FIT_WIDTH); bind(bs, GDK_KEY_w, 0, FIV_VIEW_COMMAND_FIT_WIDTH);
bind(bs, GDK_KEY_h, 0, FIV_VIEW_COMMAND_FIT_HEIGHT); bind(bs, GDK_KEY_h, 0, FIV_VIEW_COMMAND_FIT_HEIGHT);
bind(bs, GDK_KEY_k, 0, FIV_VIEW_COMMAND_TOGGLE_FIXATE);
bind(bs, GDK_KEY_x, 0, FIV_VIEW_COMMAND_TOGGLE_SCALE_TO_FIT); bind(bs, GDK_KEY_x, 0, FIV_VIEW_COMMAND_TOGGLE_SCALE_TO_FIT);
bind(bs, GDK_KEY_c, 0, FIV_VIEW_COMMAND_TOGGLE_CMS); bind(bs, GDK_KEY_c, 0, FIV_VIEW_COMMAND_TOGGLE_CMS);
bind(bs, GDK_KEY_i, 0, FIV_VIEW_COMMAND_TOGGLE_FILTER); bind(bs, GDK_KEY_i, 0, FIV_VIEW_COMMAND_TOGGLE_FILTER);

3
fiv.c
View File

@ -146,10 +146,11 @@ static struct key_group help_keys_viewer[] = {
{} {}
}}, }},
{"Configuration", (struct key[]) { {"Configuration", (struct key[]) {
{"k", "Toggle keeping zoom and position"},
{"x", "Toggle scale to fit if larger"},
#ifdef HAVE_LCMS2 #ifdef HAVE_LCMS2
{"c", "Toggle color management"}, {"c", "Toggle color management"},
#endif #endif
{"x", "Toggle scale to fit if larger"},
{"i", "Toggle smooth scaling"}, {"i", "Toggle smooth scaling"},
{"t", "Toggle transparency highlighting"}, {"t", "Toggle transparency highlighting"},
#ifdef HAVE_JPEG_QS #ifdef HAVE_JPEG_QS