This repository was archived by the owner on Sep 25, 2024. It is now read-only.
This repository was archived by the owner on Sep 25, 2024. It is now read-only.
Number: Needs keyboard controls #280
Open
Description
The Number input needs some keyboard controls to be usable without the mouse:
- down / down: change by one point up or down,
- shift+up / shift+ down: change by ten points up or down.
Where a point is a step which makes sense in the scenario:
- with
int
values:1
(with shift this becomes10
) - with
float
values, where the absolute maximum value is1
:0.01f
(with shift this becomes0.1f
), - with
float
values, where the absolute maximum value is bigger than1
:0.1f
(with shift this becomes1f
.
All of this needs to work not only on the TextField
, but also the stepper if the keyboard tab navigation focuses it. When the focus is on stepper up/down buttons, both space and enter need to simulate click, and shift+space or shift+enter need to simulate ten clicks, similar to points described above.
Makes sense?