feat(settings): Ctrl/Cmd + and - step the window zoom - #484
Conversation
6933a3a to
7005a5a
Compare
Same discrete rungs as Settings and Ctrl/Cmd +/-. Adds 175, 200, 250, and 300 so the top step is 300% instead of 150%.
7005a5a to
1876641
Compare
|
Thanks for this — ⌘/Ctrl I ran the branch: There's one thing I'd like fixed before merging, plus a few smaller ones. Details below. Blocking1. "Zoom in" / "Zoom out" show up as rebindable in Settings, but nothing reads the binding
So if a user rebinds "Zoom in" to, say, ⌘⇧Z: the value is normalized, persisted, the button label updates and a success toast fires — and then nothing happens when they press it, while ⌘= keeps zooming. Worse, rebinding frees Two ways out, either is fine:
2.
|
Zoom in/out now match the Settings bindings instead of a hardcoded Ctrl+= / Ctrl+-. Held keys repeat and still preventDefault. The integrated terminal keeps Ctrl+_, recording a shortcut no longer zooms the window, and + survives normalizeShortcut.
|
Thanks for catching that. The Settings rows for zoom in/out weren't actually wired, which is on me. Follow-up is up. Those bindings drive the listener now, and = / + and - / _ still count as the same key. Held keys repeat and still preventDefault so the browser doesn't also zoom. Terminal keeps Ctrl+_, recording a shortcut no longer zooms the settings window, and + can actually be recorded. Strings are translated, and the zoom hint no longer says Ctrl-only. Also dropped the dead Add/Subtract/Equal aliases and limited the code fallback to the numpad so AZERTY Ctrl+) doesn't zoom out. 300% is still its own commit here. Happy to split it if you'd rather land that separately. |
Settings → Window zoom is a discrete menu. This binds the usual keys to those same rungs:
Rungs are 80 / 90 / 100 / 110 / 125 / 150 / 175 / 200 / 250 / 300. Capture-phase so the webview does not eat the keys as page zoom. Same persist path as the Settings menu.
Also listed under Settings → Shortcuts.