fix(desktop): make Ctrl/Cmd+= zoom in by dicusa · Pull Request #3272 · generalaction/emdash · GitHub
Skip to content

fix(desktop): make Ctrl/Cmd+= zoom in - #3272

Open
dicusa wants to merge 1 commit into
generalaction:mainfrom
dicusa:fix/3182-zoom-in
Open

dicusa wants to merge 1 commit into
generalaction:mainfrom
dicusa:fix/3182-zoom-in

Conversation

@dicusa

@dicusa dicusa commented Sep 29, 2026

Copy link
Copy Markdown

The View menu's zoomIn role defaults to CmdOrCtrl+Plus, which needs Shift on most layouts and doesn't fire for a bare Ctrl+= on Windows/Linux, so zoom-in appeared missing while zoom-out and reset worked.

Add hidden menu aliases for CmdOrCtrl+= and the numpad +/-/0 keys, keeping the visible menu unchanged.

Fixes #3182

Description

Give a short summary of what changed, why it's needed, and any important implementation notes.

Related issues

Link related issues. If this PR fixes an issue, mention it like: Fixes #123.

Testing

List the checks you ran, for example pnpm run format, pnpm run lint,
pnpm run typecheck, pnpm run test, and any manual testing.

Screenshot/Recording (if applicable)

Attach a screenshot, GIF, or recording of the change. This is optional, but helps reviewers
understand UI or workflow changes.

Checklist
  • I kept this PR small and focused
  • I ran a self-review before opening this PR
  • I ran the relevant local checks or explained why not
  • I updated docs when behavior or setup changed
  • I added or updated tests when behavior changed, or explained why not
  • I only added comments where the logic is not obvious
  • I used Conventional Commits for commit
    messages and, when possible, the PR title

The View menu's zoomIn role defaults to `CmdOrCtrl+Plus`, which needs Shift
on most layouts and doesn't fire for a bare `Ctrl+=` on Windows/Linux, so
zoom-in appeared missing while zoom-out and reset worked.

Add hidden menu aliases for `CmdOrCtrl+=` and the numpad +/-/0 keys, keeping
the visible menu unchanged.

Fixes generalaction#3182
@greptile-apps

greptile-apps Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Comment on lines +175 to +180

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Zoom aliases lack verification The four hidden shortcuts are not covered by the existing menu tests, and the PR lists no manual keyboard checks. A focused menu-template test and documented checks on the supported platforms would make it easier to catch a shortcut regression.

Prompt To Fix With AI
This is a comment left during a code review.
Path: apps/emdash-desktop/src/main/host/menu.ts
Line: 175-180

Comment:
**Zoom aliases lack verification** The four hidden shortcuts are not covered by the existing menu tests, and the PR lists no manual keyboard checks. A focused menu-template test and documented checks on the supported platforms would make it easier to catch a shortcut regression.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

This branch has not been deployed

No deployments
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.

[feat]: Add zoom-in binding Testing

1 participant