fluid-lab / gamepad-navigator

GSoC 2020 project
Other
6 stars 10 forks source link

Add ability to control radio buttons with arrows. #135

Closed duhrer closed 5 months ago

duhrer commented 6 months ago

Currently, the gamepad navigator can control radio buttons in one of the ways a keyboard user would:

  1. Navigate to the desired radio button using our equivalent of "tabs".
  2. "click" the desired radio button to select it.

We should also add support for sending arrow keys to a radio button group, which:

  1. Navigates to and selects the next radio button on right arrow or down arrow.
  2. Navigates to and selects the previous radio button on left arrow or down arrow.

We should be able to handle this by generalising the code in the sendKey method that was added for #134, i.e. special-casing arrow keys up front and then adding the exceptions.