fluid-lab / gamepad-navigator

GSoC 2020 project
Other
6 stars 10 forks source link

Arrow "step" operators should not attempt to operate on `inputmode=decimal` fields. #171

Closed duhrer closed 4 months ago

duhrer commented 4 months ago

In working on #160, I noticed errors when using the d-pad to operate the number input on [Weavly](https:/create.weavly.org/].

It turns out that inputs with an inputmode set to decimal do not support stepping values up or down. I separated out some of the logic to make a new isSteppable function to better distinguish things we can step from things we can't.