fluid-lab / gamepad-navigator

GSoC 2020 project
Other
6 stars 10 forks source link

Range inputs cannot be controlled by default. #136

Closed duhrer closed 5 months ago

duhrer commented 6 months ago

In the settings panel added for #103, I added a wrapped range input that supports our arrow keys. Default range inputs do not, likely because they screen out the "untrusted" keyboard events we transmit.

We should be able to add support by extending the code added for #134 to work with both input types, as a range input also supports stepping up and down.

We need to confirm whether we still need our own wrapper for the settings panel afterwards.

duhrer commented 6 months ago

This worked perfectly and allowed me to remove the special keydown handler in the settings input range.