mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-08 17:06:15 -08:00
Add the standard set of player shortcuts to match the audio/HTML video players already in the app: - Space, K — play/pause - F — toggle fullscreen - Left/Right — seek -5 s / +5 s - Up/Down — volume +/- 5 % - M — toggle mute (restores prior volume) Shortcuts are ignored while focus is in an input/select/textarea or while any MatDialog (e.g. command palette) is open, so the palette's filter and dialog inputs keep their keys. Volume changes route through a shared applyVolume helper so keyboard/wheel/slider all persist to localStorage and the active session. Also bind dblclick on the player root to toggle fullscreen, with a guard so double-clicks on buttons/sliders don't trigger it. Note: the native MPV NSView intercepts mouse events over the video itself, so dblclick only fires on DOM-receiving regions (currently the controls strip). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> Entire-Checkpoint: f957cd9849e0