Bug 501174 - Keyboard shortcuts to cycle through media sources
Summary: Keyboard shortcuts to cycle through media sources
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Media Player widget (show other bugs)
Version: 6.3.2
Platform: Gentoo Packages Linux
: NOR wishlist
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-07 08:19 UTC by Joe Breuer
Modified: 2025-04-21 04:48 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.4.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joe Breuer 2025-03-07 08:19:25 UTC
This feature request is against the "Media Player" systray thing in Plasma 6.2.5 - did I pick the right component?

While it is great to have consistent keyboard shortcuts to control the basic functions of any and all media sources (browser, Strawberry etc, Spotify et al):

Hotkeys to cycle through those media sources (when there's more than one available) would be great. What shows up as "tabs" at the top in the UI, when clicking on the systray icon.
Comment 1 Bug Janitor Service 2025-03-13 14:29:26 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/5314
Comment 2 cwo 2025-04-20 14:04:23 UTC
Git commit 42f322e2df9e633c369ddbc37a0b11b115df165c by Christoph Wolk.
Committed on 20/04/2025 at 13:40.
Pushed by cwo into branch 'master'.

applets/mediacontroller: allow tab changes with Alt+number

Alt+1 to Alt+0 are a common shortcut in KDE Applications such as Kate
and Dolphin to switch between the first 10 tabs. The media controller
applet has potentially many tabs from different media players, browsers,
KDE Connect devices etc., but does not support these shortcuts.

This change adds support for Alt+1 to Alt+0.

M  +8    -0    applets/mediacontroller/package/contents/ui/ExpandedRepresentation.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/42f322e2df9e633c369ddbc37a0b11b115df165c
Comment 3 cwo 2025-04-20 14:04:31 UTC
Git commit 82324ff676982236f695c336673e9b41d31f02ba by Christoph Wolk.
Committed on 20/04/2025 at 13:40.
Pushed by cwo into branch 'master'.

applets/mediacontroller: make ctrl-tab work better

Mediacontroller has mcuh of its keybaord behavior in a onReleased
handler to have better seeking behavior. This creates a conflict between
the Ctrl+Tab tab switching and KeyNavigation.Tab handler, as that
trigger is on press and so gets activated before the tab-switching code
does. As a consequence, Ctrl+Tab only works every other press, which
combined with duplicated content (from the "Choose Automatically"
button) and a lack of visual feedback makes for a rather awkward
experience. Ctrl+Backtab also does not work at all, as backtab from the
tab bar is itself broken and interferes with Ctrl+Backtab.

Instead, we move Ctrl+(Back)tab handling into the onPressed trigger,
which solves the issue and makes at least Ctrl+Backtab work.

M  +6    -5    applets/mediacontroller/package/contents/ui/ExpandedRepresentation.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/82324ff676982236f695c336673e9b41d31f02ba