Skip to content

Fixed Ctrl++/− zoom shortcuts not working with the numpad +/− keys - #165

Merged
oleg68 merged 1 commit into
nbplugins:mainfrom
oleg68:bugfix/ctrl-numpad-zoom
Jul 19, 2026
Merged

Fixed Ctrl++/− zoom shortcuts not working with the numpad +/− keys#165
oleg68 merged 1 commit into
nbplugins:mainfrom
oleg68:bugfix/ctrl-numpad-zoom

Conversation

@oleg68

@oleg68 oleg68 commented Jul 19, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Ctrl+Plus / Ctrl+Minus zoom shortcuts only worked with the main-keyboard -/= keys (VK_MINUS/VK_EQUALS); the numpad +/- keys (VK_ADD/VK_SUBTRACT) were never wired up in either the terminal tab or Markdown Preview.
  • Bound VK_ADD/VK_SUBTRACT/VK_NUMPAD0 alongside the existing keys in ZoomSupport.bindZoomKeys() and in ClaudeSessionTab.zoomKeyInterceptor (the global KeyEventDispatcher needed because JediTerm consumes key events before Swing's InputMap sees them).

Test plan

  • mvn test — all tests pass, including new ZoomSupportTest.bindZoomKeys_registersNumpadPlusMinusAndZeroInBothMaps and ClaudeSessionTabZoomKeyTest
  • mvn package succeeds
  • Manual: focus the terminal tab, press Ctrl+NumpadPlus/Ctrl+NumpadMinus/Ctrl+Numpad0 — zoom in/out/reset. Repeat in Markdown Preview. Verify main-keyboard Ctrl+=/Ctrl+-/Ctrl+0 still work (no regression).

🤖 Generated with Claude Code

Bound VK_ADD/VK_SUBTRACT/VK_NUMPAD0 alongside the existing main-keyboard
VK_EQUALS/VK_MINUS/VK_0 in ZoomSupport.bindZoomKeys() (used by Markdown
Preview and the terminal tab's Swing InputMap) and in
ClaudeSessionTab.zoomKeyInterceptor (the global KeyEventDispatcher needed
because JediTerm consumes key events before Swing's InputMap sees them).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@oleg68
oleg68 merged commit 43ea310 into nbplugins:main Jul 19, 2026
3 checks passed
@oleg68
oleg68 deleted the bugfix/ctrl-numpad-zoom branch July 19, 2026 06:30
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