From 16d7745a360ae883046f75f40be92cc06222fe1c Mon Sep 17 00:00:00 2001 From: Sunny Date: Sun, 22 Mar 2026 20:09:37 +0000 Subject: [PATCH 1/2] image-viewer: Add equal key for image-zoom-in In alignment with xviewer, add the equal key as a shortcut for image-zoom-in. --- extensions/image_viewer/callbacks.c | 1 + 1 file changed, 1 insertion(+) diff --git a/extensions/image_viewer/callbacks.c b/extensions/image_viewer/callbacks.c index eede313b..70c1aec0 100644 --- a/extensions/image_viewer/callbacks.c +++ b/extensions/image_viewer/callbacks.c @@ -30,6 +30,7 @@ static const GthShortcut shortcuts[] = { { "image-zoom-in", N_("Zoom in"), GTH_SHORTCUT_CONTEXT_VIEWER, GTH_SHORTCUT_CATEGORY_IMAGE_VIEWER, "plus" }, + { "image-zoom-in", N_("Zoom in"), GTH_SHORTCUT_CONTEXT_VIEWER, GTH_SHORTCUT_CATEGORY_IMAGE_VIEWER, "equal" }, { "image-zoom-out", N_("Zoom out"), GTH_SHORTCUT_CONTEXT_VIEWER, GTH_SHORTCUT_CATEGORY_IMAGE_VIEWER, "minus" }, { "image-zoom-100", N_("Zoom 100%"), GTH_SHORTCUT_CONTEXT_VIEWER, GTH_SHORTCUT_CATEGORY_IMAGE_VIEWER, "1" }, { "image-zoom-200", N_("Zoom 200%"), GTH_SHORTCUT_CONTEXT_VIEWER, GTH_SHORTCUT_CATEGORY_IMAGE_VIEWER, "2" }, From 62aa11e15e585b4dfc2e79239bf228d4a2050a65 Mon Sep 17 00:00:00 2001 From: Sunny Date: Wed, 8 Apr 2026 15:35:35 +0000 Subject: [PATCH 2/2] image-viewer: Add KP_Add and KP_Subtract for zoom Enable zoom-in/out using the keypad Add and Subtract keys. --- extensions/image_viewer/callbacks.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extensions/image_viewer/callbacks.c b/extensions/image_viewer/callbacks.c index 70c1aec0..04b5da54 100644 --- a/extensions/image_viewer/callbacks.c +++ b/extensions/image_viewer/callbacks.c @@ -31,7 +31,9 @@ static const GthShortcut shortcuts[] = { { "image-zoom-in", N_("Zoom in"), GTH_SHORTCUT_CONTEXT_VIEWER, GTH_SHORTCUT_CATEGORY_IMAGE_VIEWER, "plus" }, { "image-zoom-in", N_("Zoom in"), GTH_SHORTCUT_CONTEXT_VIEWER, GTH_SHORTCUT_CATEGORY_IMAGE_VIEWER, "equal" }, + { "image-zoom-in", N_("Zoom in"), GTH_SHORTCUT_CONTEXT_VIEWER, GTH_SHORTCUT_CATEGORY_IMAGE_VIEWER, "KP_Add" }, { "image-zoom-out", N_("Zoom out"), GTH_SHORTCUT_CONTEXT_VIEWER, GTH_SHORTCUT_CATEGORY_IMAGE_VIEWER, "minus" }, + { "image-zoom-out", N_("Zoom out"), GTH_SHORTCUT_CONTEXT_VIEWER, GTH_SHORTCUT_CATEGORY_IMAGE_VIEWER, "KP_Subtract" }, { "image-zoom-100", N_("Zoom 100%"), GTH_SHORTCUT_CONTEXT_VIEWER, GTH_SHORTCUT_CATEGORY_IMAGE_VIEWER, "1" }, { "image-zoom-200", N_("Zoom 200%"), GTH_SHORTCUT_CONTEXT_VIEWER, GTH_SHORTCUT_CATEGORY_IMAGE_VIEWER, "2" }, { "image-zoom-300", N_("Zoom 300%"), GTH_SHORTCUT_CONTEXT_VIEWER, GTH_SHORTCUT_CATEGORY_IMAGE_VIEWER, "3" },