Skip to content

Add basic keyboard controls

Created by: BlobCodes

This PR adds keyboard controls on the waveform element, which is focused by default. This means that one can now simply navigate the song with the keyboard without first tab-ing to the GtkScale.

New keyboard controls:

  • Press space to pause/play
  • Press arrow_left/arrow_right to jump backwards/forwards 10 seconds

These controls have been added to the help page. Translations for these keys probably need to be added, but I have no idea how to do that.

More precise controls could be added in the future, but I wanted to keep this PR small.

The GtkScale and the three buttons in the lower middle (back 10s, pause, skip 10s) are now not focusable anymore because this should be way more intuitive.

Merge request reports