fix: handle Ctrl++ zoom-in on Windows#491
Conversation
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>
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Tip Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs). 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. Comment |
|
This is done in pr #406 |
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.tsand increasewebContentszoom level by 0.5Add
isWindowsZoomInShortcutpredicate and hookbefore-input-eventin 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.createWindowhandler and itswebContentsinput listener in main.ts.Macroscope summarized afa0ffc.