aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-07-17 15:25:56 +0200
committerPřemysl Eric Janouch <p@janouch.name>2022-07-17 15:26:20 +0200
commit94f6938b9abfb7f66df632aa94775e0c5e8d6c17 (patch)
treef938e5e51f8d29def18f6971e1423354dfc3528b
parent62b1e83541a0d42315227cd2237d230c4a4195a6 (diff)
downloadfiv-94f6938b9abfb7f66df632aa94775e0c5e8d6c17.tar.gz
fiv-94f6938b9abfb7f66df632aa94775e0c5e8d6c17.tar.xz
fiv-94f6938b9abfb7f66df632aa94775e0c5e8d6c17.zip
Add a key binding for keeping the zoom/position
-rw-r--r--fiv-view.c1
-rw-r--r--fiv.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/fiv-view.c b/fiv-view.c
index 8a42d04..484f314 100644
--- a/fiv-view.c
+++ b/fiv-view.c
@@ -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_w, 0, FIV_VIEW_COMMAND_FIT_WIDTH);
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_c, 0, FIV_VIEW_COMMAND_TOGGLE_CMS);
bind(bs, GDK_KEY_i, 0, FIV_VIEW_COMMAND_TOGGLE_FILTER);
diff --git a/fiv.c b/fiv.c
index 73a996b..9f0af5e 100644
--- a/fiv.c
+++ b/fiv.c
@@ -146,10 +146,11 @@ static struct key_group help_keys_viewer[] = {
{}
}},
{"Configuration", (struct key[]) {
+ {"k", "Toggle keeping zoom and position"},
+ {"x", "Toggle scale to fit if larger"},
#ifdef HAVE_LCMS2
{"c", "Toggle color management"},
#endif
- {"x", "Toggle scale to fit if larger"},
{"i", "Toggle smooth scaling"},
{"t", "Toggle transparency highlighting"},
#ifdef HAVE_JPEG_QS