Skip to content

image-viewer: Add equal key for image-zoom-in#245

Open
darkowlzz wants to merge 1 commit intolinuxmint:masterfrom
darkowlzz:zoom-in-with-equal
Open

image-viewer: Add equal key for image-zoom-in#245
darkowlzz wants to merge 1 commit intolinuxmint:masterfrom
darkowlzz:zoom-in-with-equal

Conversation

@darkowlzz
Copy link

In alignment with xviewer, add the equal key as a shortcut for image-zoom-in.

On Linux Mint 22.3 Xfce and Cinnamon, I could not use the "+" key (GDK_KEY_plus) for zoom-in on an image in Pix. Not even in combination with Shift or Ctrl key. But zoom-out worked perfectly with "-" key.
Looking at the code, I tried adding the "=" key and that made it work. I looked for the same in the xviewer repository and found out that it too uses multiple keys for supporting zoom-in, refer https://github.com/linuxmint/xviewer/blob/becb779a65e7ef18dcd2edaed8cfcd62b4497ef4/src/xviewer-scroll-view.c#L1623-L1625.

This also lead me to try using the keypad + and - keys, and they don't work. If it's acceptable, I can submit another change adding support for GDK_KEY_KP_Add and GDK_KEY_KP_Subtract keys for zoom-in and zoom-out respectively.

In alignment with xviewer, add the equal key as a shortcut for
image-zoom-in.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant