Skip to content

fix: prevent media key global shortcuts from breaking Windows SMTC fl…#4310

Open
Thundia2 wants to merge 1 commit intopear-devs:masterfrom
Thundia2:claude/fix-taskbar-flyout-issue-DeFF3
Open

fix: prevent media key global shortcuts from breaking Windows SMTC fl…#4310
Thundia2 wants to merge 1 commit intopear-devs:masterfrom
Thundia2:claude/fix-taskbar-flyout-issue-DeFF3

Conversation

@Thundia2
Copy link

@Thundia2 Thundia2 commented Feb 7, 2026

…yout

On Windows, registering globalShortcut for MediaPlayPause/MediaNextTrack/ MediaPreviousTrack intercepts these key events at the OS level before they reach the SMTC (System Media Transport Controls) pipeline. This causes the Windows 11 taskbar media flyout to disappear entirely.

Skip registering global shortcuts for media keys on Windows and let Chromium's built-in MediaSessionService handle them through SMTC instead. Also guard the custom global shortcut mapping against media key accelerators on Windows to prevent the same issue through user configuration.

https://claude.ai/code/session_01GEBpbF58htWkfQRbH2Eysa

…yout

On Windows, registering globalShortcut for MediaPlayPause/MediaNextTrack/
MediaPreviousTrack intercepts these key events at the OS level before they
reach the SMTC (System Media Transport Controls) pipeline. This causes the
Windows 11 taskbar media flyout to disappear entirely.

Skip registering global shortcuts for media keys on Windows and let
Chromium's built-in MediaSessionService handle them through SMTC instead.
Also guard the custom global shortcut mapping against media key accelerators
on Windows to prevent the same issue through user configuration.

https://claude.ai/code/session_01GEBpbF58htWkfQRbH2Eysa
@JellyBrick JellyBrick added the bug Something isn't working label Feb 7, 2026
@JellyBrick JellyBrick added the electron-issue It's an Electron or Electron related dependencies issue (not YTM-Desktop issue) label Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working electron-issue It's an Electron or Electron related dependencies issue (not YTM-Desktop issue)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants