GNOME Bugzilla – Bug 777346
Feature: Ability to seek track forward/backward using arrow keys.
Last modified: 2017-04-25 09:51:19 UTC
It is an essential feature that user has the ability to seek forward, backward using arrow keys. Most music players provide this and it has become a habit for us. I suggest the following shortcuts: If progress bar is focused: -left/right seeks the track by -/+ 5 seconds. If progress bar is not focused: -shift + left/right seeks the track by -/+ 5 seconds. We do not need variations like ctrl + left/right for -/+ 10 seconds, IMO. Note: -while holding the key, the track should be paused.
Created attachment 343577 [details] [review] Feature - forward/backward seek track using arrow This patch reuses the code that enabled the user to seek the track using mouse. key-press-event and key-released-event are used just like the button-events were connected to and used. -------------- double clicking on the seek/progress bar pauses the playing song. https://bugzilla.gnome.org/show_bug.cgi?id=776668#c1 Progress scale's button press event was getting called multiple times before a single button release event was called. This messed up the last state of the player, and caused it to pause. This might be a bug with how gtk/gdk handles events. --------------- It had come to my notice that I could not *reuse* mouse seek track's functionality for arrow seek track unless that bug is fixed. Hence this patch is stacked over that patch.
Looks like a nice addition, however there are some issues with the patch this is depending on still.
Created attachment 347215 [details] [review] player.py: seek songs using arrow keys
Thanks for the patch.