Skip to content

Support shift and page keyboard steps in NumberSpinner, NumberPicker, and FineCoarseSpinner #979

Description

@jessegreenberg

From slack, @pixelzoom asked:

Does NumberSpinner not support keyboardStep and shiftKeyboardStep? Or am I looking in the wrong place?

It currently does not. NumberSpinner sets keyboardStep, shiftKeyboardStep, and pageKeyboardStep to 0 so that all arrow-key input goes through synthetic arrow-button clicks and uses deltaValue. This was our intentional design many years ago.

That makes keyboard input slow for small deltaValue values, and is different from NumberControl. For NumberControl, all keyboard step options are available (although that component has an actual slider).

Should we revisit this design? Should NumberSpinner support keyboardStep and shiftKeyboardStep? If so, what should the arrow buttons look like when keyboard input changes the value by a different amount than clicking the button?

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions