[PR #2647] fix(desktop): support Ctrl and mouse-wheel zoom shortcuts #5795

Open
opened 2026-04-16 13:52:25 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-vikunja/vikunja/pull/2647
Author: @Tokra110
Created: 4/16/2026
Status: 🔄 Open

Base: mainHead: fix/desktop-zoom-shortcuts


📝 Commits (1)

  • 7d99792 fix(desktop): support Ctrl and mouse-wheel zoom shortcuts

📊 Changes

1 file changed (+68 additions, -0 deletions)

View changed files

📝 desktop/main.js (+68 -0)

📄 Description

Summary

Adds keyboard and mouse-wheel zoom shortcuts to the Electron desktop app, with the chosen level persisted across restarts. Fixes #2623.

  • Ctrl + Plus / Ctrl + Minus / Ctrl + 0 via webContents.before-input-event, event.preventDefault() so the page doesn't double-handle them.
  • Ctrl + mouse wheel via the zoom-changed webContents event.
  • Zoom clamped to [-7, +7] (Chromium's own range, roughly 28% to 358%).
  • Persisted to zoom.json in app.getPath('userData') and re-applied on every did-finish-load, since Electron resets zoom on page reloads.

No new menu/tray entries, following maintainer feedback on the issue that shortcuts should "just work" rather than surfacing UI for them.

Test plan

  • Ctrl+= / Ctrl+- / Ctrl+0 change zoom as expected
  • Ctrl + mouse wheel zooms smoothly in both directions
  • Zoom persists across a full quit + relaunch
  • Zoom clamps at bounds under rapid repeated input
  • Tested on Fedora 43, KDE Plasma 6, Wayland

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-vikunja/vikunja/pull/2647 **Author:** [@Tokra110](https://github.com/Tokra110) **Created:** 4/16/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/desktop-zoom-shortcuts` --- ### 📝 Commits (1) - [`7d99792`](https://github.com/go-vikunja/vikunja/commit/7d99792ba417a3871438e2d8963e0b0d62c17fe8) fix(desktop): support Ctrl and mouse-wheel zoom shortcuts ### 📊 Changes **1 file changed** (+68 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `desktop/main.js` (+68 -0) </details> ### 📄 Description ## Summary Adds keyboard and mouse-wheel zoom shortcuts to the Electron desktop app, with the chosen level persisted across restarts. Fixes #2623. - **Ctrl + Plus / Ctrl + Minus / Ctrl + 0** via `webContents.before-input-event`, `event.preventDefault()` so the page doesn't double-handle them. - **Ctrl + mouse wheel** via the `zoom-changed` webContents event. - Zoom clamped to `[-7, +7]` (Chromium's own range, roughly 28% to 358%). - Persisted to `zoom.json` in `app.getPath('userData')` and re-applied on every `did-finish-load`, since Electron resets zoom on page reloads. No new menu/tray entries, following maintainer feedback on the issue that shortcuts should "just work" rather than surfacing UI for them. ## Test plan - [x] Ctrl+= / Ctrl+- / Ctrl+0 change zoom as expected - [x] Ctrl + mouse wheel zooms smoothly in both directions - [x] Zoom persists across a full quit + relaunch - [x] Zoom clamps at bounds under rapid repeated input - [x] Tested on Fedora 43, KDE Plasma 6, Wayland --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-16 13:52:25 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vikunja#5795