2

In material design when I try to access Toggle Button via Keyboard, the spacebar is used as an action button. Why not Left/Right keyboard keys are not used as action buttons.
What is the right key for Toggle Button if I access via keyboard?

enter image description here

1 Answer 1

4

Since toggle buttons are essentially just differently-styled checkboxes, it makes sense to use the same access key, which is normally Spacebar. (Here's an example of another toolkit's toggle button, which also uses Spacebar: Oracle JET.)

Depending on your UI toolkit and the particular grouping of controls in your UI, the arrow keys may be used to move to other toggle buttons in the same group, so personally I'd avoid over-riding those.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.