Skip to content

Fix terminal zoom shortcuts on Linux layouts - #347

Merged
mathnogueira merged 1 commit into
mainfrom
fix/terminal-zoom-shortcuts-linux
Apr 6, 2026
Merged

mathnogueira merged 1 commit into
mainfrom
fix/terminal-zoom-shortcuts-linux

Conversation

@mathnogueira

Copy link
Copy Markdown
Contributor

Problem

On Linux keyboard layouts, Ctrl+- (top-row minus) did not reliably zoom out in the terminal. In some cases the chord was consumed before before-input-event, while zoom-in and menu-driven zoom still worked. The shortcuts UI also did not list zoom shortcuts, and the View menu label used "Actual Size" instead of "Reset Size".

Solution

  • Hardened terminal zoom shortcut matching in the main window input handler to accept multiple minus key representations (-, _, Minus, Subtract, and matching code variants), plus numpad add for zoom-in.
  • Added a zoom-changed fallback bridge so Electron zoom commands are rerouted to terminal zoom when low-level key events are not delivered.
  • Wired View menu zoom actions to explicit callbacks (Zoom In, Zoom Out, Reset Size) and renamed "Actual Size" to "Reset Size".
  • Added a hidden Linux alias accelerator (CmdOrCtrl+_) for zoom out to support layouts where minus is reported through underscore.
  • Added/updated tests for minus-key variants and zoom-changed routing.
  • Updated the Settings > Keyboard Shortcuts list to include Zoom In, Zoom Out, and Reset Size entries.

@mathnogueira
mathnogueira merged commit e42ae3f into main Apr 6, 2026
1 check passed
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
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