Skip to content

Fix #83: Ctrl and + zooms in however + is typed (numpad, Shift+=, a + key) - #149

Merged
bflatastic merged 1 commit into
mainfrom
fix/issue-83
Oct 5, 2026
Merged

bflatastic merged 1 commit into
mainfrom
fix/issue-83

Conversation

@bflatastic

Copy link
Copy Markdown
Member

Fixes #83: Ctrl and + zooms in however + is typed: numpad +, Shift+=, or a layout with its own + key.

  • The shortcut parser turned = into Key::Equals, but egui reports the numpad + and a dedicated + key as Key::Plus.
  • + and = now parse to the same chord key, and a recorded + is stored as =. The new shortcuts::consume lets an = chord also take Key::Plus.
  • Next to the macOS native menu, the chord matches only the Plus key, because the menu itself handles the chord as written.
  • Test: plus_typed_any_way_zooms_in. Also checked in the running app: Ctrl+Plus zooms from 164% to 200%.

Checks

🤖 Generated with Claude Code

… key)

The shortcut parser mapped "=" to Key::Equals and the matcher only took
that exact key, while egui reports the numpad plus, and + on layouts that
give it its own key (and often Shift+=), as Key::Plus. "+" and "=" now
parse to one chord key, a recorded + is stored as =, and the matcher lets
a = chord take Key::Plus too (also next to the native macOS menu, which
handles only the chord as written).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

Bug: Ctrl + numpad plus (and Ctrl+Shift+=) do not zoom in

1 participant