Skip to content
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
@vancura

Description

@vancura

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 becomes 10)
  • with float values, where the absolute maximum value is 1: 0.01f (with shift this becomes 0.1f),
  • with float values, where the absolute maximum value is bigger than 1: 0.1f (with shift this becomes 1f.

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions