Skip to content

Keyboard zoom in/out broken #2782

Closed
Closed

Description

@dkogan

Debian GNU/Linux. I tried several different revisions of gtk4 geeqie. Both the 3.3-4 Debian package of geeqie and a fresh one built from source today (807068c) cannot zoom via the keyboard. Pre-gtk4 you could zoom out with '-' and you could zoom in with both '=' and '+' (i.e. with and without the shift).

Today I observe that with 3.3-4

  • '-' does nothing; Shift '-' zooms out
  • '=' does nothing; Shift '=' (i.e. '+') zooms in

with the build from source, none of these do anything.

I'm using the default config in both cases:

win.image-win-zoom-in <SHIFT>plus;equal;KP_Add
win.image-win-zoom-out minus;KP_Subtract

Thanks.

Activity

  1. xsdg commented on Nov 16, 2026

    @xsdg
    Contributor

    Thanks for the report! I also ran into this recently. I think there's a lot of room for this to be more intuitive.

    For now, though, try making the same changes to win.main-win-$x that you already made to win.image-win-$x. If those work for you, we feel free to update the issue title to focus on usability/discoverability

  2. dkogan commented on Nov 16, 2026

    @dkogan
    Author

    I didn't make any changes to anything. These are the defaults. It's not doing what it's own config says. It's a bug.

  3. xsdg commented on Nov 16, 2026

    @xsdg
    Contributor

    Okay, I misunderstood, but got it. I agree that the behavior is very counter-intuitive. But I'm trying to understand if this is a a code issue, an issue with poor defaults, or something else. I don't think it's a code issue. I think it's poor defaults.

    What does your configuration show for win.main-win-zoom-in and win.main-win-zoom-out? On mine, I think it showed the behavior you're pointing out (using <Control> for those shortcuts)

    If that's what you see, and you modify win.main-win-zoom-in and win.main-win-zoom-out to match win.image-win-zoom-in and win.image-win-zoom-out, does Geeqie start behaving how you were expecting?

  4. dkogan commented on Nov 16, 2026

    @dkogan
    Author

    Hi. Yes. win.main-win-zoom-in asks for <Control> instead of <Shift>, and that does work. I don't know why there's a different main-win and image-win. Probably there shouldn't be; because it's confusing. Also, - and = worked to zoom by default for years and years and years, without any modifiers. Can we get back to that?

    Thanks for replying so quickly.

  5. caclark commented on Nov 16, 2026

    @caclark
    Collaborator

    The GTK3 to GTK4 change resulted in a massive change in menus - my brain went into overload trying to get to grips with it.
    I thought that were inconsistencies in the original shortcut allocations (although over the years users got used to that), but I thought it was a good time to make the shortcuts compliant with the Gnome Human Interface Guidelines - https://developer.gnome.org/hig/reference/keyboard.html

    When the GTK4 version is run for the first time, there is a note that some shortcuts have been changed. That is probably not sufficient.

    When the new version is run for the first time, shortcuts that the user has created are converted to the new format. Maybe at that point it may be better for the user to be given the option to stay with the old shortcuts (if that is possible) or to use the HIG compliant shortcuts.

    Users can find shortcut allocations by Help/Keyboard Shortcuts and by typing e.g. Zoom into the search box.

  6. dkogan commented on Nov 16, 2026

    @dkogan
    Author

    Hi. Thanks for maintaining all this. I guess there are several independent things here:

    • We have main-win and image-win flavors of the zoom shortcut, and only one of them work. Probably we should have only one flavor.
    • I'm using the default keyboard mappings, and keeping those working probably would be good. A notification at startup that says "Heads up, you now get to do homework because we're conforming to some document you've never heard of" isn't what any user wants to see. I suppose supporting everybody's custom mappings would be hard, but the defaults should remain. And do we even need to change the zoom buttons? Are "-" and "=" really all that controversial? Is there a plan to use those keys for other things? If not, we really should keep them
    • Relatedly, I have now bumped to a few other changes: J no longer controls the histogram, but Shift-J does. Do the guidelines say to not have any modified-free keys do anything? If so, I strongly disagree: this is a single-purpose application, and there will never be conflicts with any bindings.

    Thanks much for working on this

  7. added a commit that references this issue on Nov 17, 2026
    0479a81
  8. caclark commented on Nov 17, 2026

    @caclark
    Collaborator

    There is additional information in the commit message of 0479a81

    It is possible to revert to your v2.x shortcut setup at any time using Edit/Preferences/Advances/Revert...

    (Well, that's the plan)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions