Play audio without mouse

And I’m wondering how to play an audio file without using a mouse? I can select a triangular icon (play button) with the tab key, but neither “Space” nor “Enter” plays a sound

It’s possible with a bit of code added to the front/back template by using a key that is not used by Anki to emulate a click action, e.g. z.

<script>
if (typeof myKeyListener === 'undefined') {
  var myKeyListener = true;
  document.addEventListener('keydown', function(event) {
    if (event.key == 'z') {
      document.activeElement.click();
    }
  });
}
</script>
1 Like