Skip to content

fix: handle Ctrl++ zoom-in on Windows#491

Closed
arubi9 wants to merge 1 commit intopingdotgg:mainfrom
arubi9:fix/windows-ctrl-plus-zoom
Closed

fix: handle Ctrl++ zoom-in on Windows#491
arubi9 wants to merge 1 commit intopingdotgg:mainfrom
arubi9:fix/windows-ctrl-plus-zoom

Conversation

@arubi9
Copy link

@arubi9 arubi9 commented Mar 8, 2026

Electron's default accelerator handling misses the Ctrl++, Ctrl+Shift+= and Ctrl+NumpadAdd chords on Windows. Hook before-input-event in the BrowserWindow to detect these combos and increment the zoom level.

Also add the Windows desktop build command to the quick-start docs.

Note

Intercept Windows Ctrl++ zoom-in in apps/desktop/src/main.ts and increase webContents zoom level by 0.5

Add isWindowsZoomInShortcut predicate and hook before-input-event in main.ts to apply a +0.5 zoom for Windows shortcuts; implement utility in zoomShortcuts.ts and tests in zoomShortcuts.test.ts; update Windows notes in quick-start.md.

📍Where to Start

Start with the main.createWindow handler and its webContents input listener in main.ts.

Macroscope summarized afa0ffc.

Electron's default accelerator handling misses the Ctrl++, Ctrl+Shift+=
and Ctrl+NumpadAdd chords on Windows. Hook before-input-event in the
BrowserWindow to detect these combos and increment the zoom level.

Also add the Windows desktop build command to the quick-start docs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@coderabbitai
Copy link

coderabbitai bot commented Mar 8, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 28c0595f-08fb-4fbb-ac54-a43e60d2e210

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Tip

Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs).
Share your feedback on Discord.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@SuperComboGamer
Copy link

This is done in pr #406

@arubi9 arubi9 closed this Mar 8, 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.

2 participants