Keyboard: app zoom, music track nav, sidebar nav #41
Loading…
Reference in a new issue
No description provided.
Delete branch "keyboard-zoom-track-nav"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Three keyboard shortcuts, all surfaced in the Keybinds reference.
Ctrl/Cmd +/-/0zooms the whole webview in/out and resets to 100%.Ctrl/Cmd + ←/→steps the playing queue (prev/next), app-wide whenever something is playing.Alt + ↑/↓steps the active selection through the sidebar's nav items.How
getCurrentWebview().setZoom. The factor lives inprefsStore(localStorage), clamped to [0.5, 3] in 0.1 steps, and is re-applied on launch since webview zoom doesn't persist. Adds thecore:webview:allow-set-webview-zoomcapability.MusicGlobalPlayerrather than coreApp.tsx, to keep the plugin boundary clean. Guards against firing in text fields; acceptsCmdon macOS (whereCtrl+←/→is a system shortcut).aria-current, and routes to the prev/next. Clamps at the ends.Testing
tsc, Biome, full-repo lint, andcargo check(validates the new capability) all pass. Verified viamake dev: zoom works and survives a restart, track-skip works app-wide while playing and not while typing, and Alt+↑/↓ walks the sidebar selection.