Bug 351146 - Shortcut for pause/next/prev when plasmoid is active
Summary: Shortcut for pause/next/prev when plasmoid is active
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Media Player widget (other bugs)
Version First Reported In: 5.3.2
Platform: Gentoo Packages Linux
: NOR wishlist
Target Milestone: 1.0
Assignee: Kai Uwe Broulik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-10 07:52 UTC by Radek Janoštík
Modified: 2016-03-01 07:06 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Radek Janoštík 2015-08-10 07:52:38 UTC
It would by fine if there was settable shortcuts for actions when is plasmoid active. 

For example - i have plasmoid icon in panel. When I click on icon, I can see plasmoid with buttons "prev" "play" "next". When I press space key, it should pause music. Etc.

Thanks
Comment 1 Kai Uwe Broulik 2016-01-22 11:55:10 UTC
Interesting idea, however, you could use Tab to navigate to the buttons, and there are also global shortcuts so you wouldn't actually need to open the applet at all.
Comment 2 Kai Uwe Broulik 2016-02-28 21:44:06 UTC
Git commit df37fc86e507469bbb60889a108469784fd9377f by Kai Uwe Broulik.
Committed on 28/02/2016 at 21:35.
Pushed by broulik into branch 'master'.

[Media Controller] Add keyboard shortcuts to the applet itself

When the applet is opened you can press the following keys to control it:
* Space (and K): Play/Pause
* P: Previous song
* N: Next song
* S: Stop playback
* Left key (or J): seek back 5s
* Right key (or L): seek forward 5s
* Home: Go to beginning of track
* End: Go to end of track (ie. basically goes to next track)
* 0..9: Jump to 0%, 10%, 20%, etc of track's length depending on the number

Of course there's still the global shortcuts so you don't actually need this.
While at it I made the slider a bit more reliable while manipulating it so it
wouldn't twitch around.
FIXED-IN: 5.6.0

M  +39   -2    applets/mediacontroller/contents/ui/ExpandedRepresentation.qml
M  +4    -0    applets/mediacontroller/contents/ui/main.qml

http://commits.kde.org/plasma-workspace/df37fc86e507469bbb60889a108469784fd9377f
Comment 3 Radek Janoštík 2016-03-01 07:06:13 UTC
Thank you,I am looking forward to the new version.