std-switch icon indicating copy to clipboard operation
std-switch copied to clipboard

Suggestion: Keyboard Interaction Arrow-keys

Open AutoSponge opened this issue 6 years ago • 2 comments

For someone with dexterity issues (or maybe just a dirty keyboard), the space bar toggle interaction can cause issues. If held, the space bar will repeat, triggering another state change.

I suggest an alternate method for changing switch state IN ADDITION to <space>.

The word "THUMB" was chosen as it seems to have been used for naming the indicator of a ranged input control.

<left-arrow> = move THUMB to "left" position of SWITCH <right-arrow> = move THUMB to "right" position of SWITCH <up-arrow> = move THUMB to "right" position of SWITCH <down-arrow> = move THUMB to "left" position of SWITCH

Arrows repeating will not cause another state change. Range sliders already use this interaction.

AutoSponge avatar May 18 '19 10:05 AutoSponge

Suggest the arrows do not map to on/off states but instead to the intended direction to move the ball in the gutter. The reason is that the native toggle control flips its on/off position for RTL languages.

While this is a visual difference, for blind RTL users this will keep parity with sighted users, particularly when visual / tech support is needed.

aardrian avatar May 20 '19 19:05 aardrian

@aardrian Great point. I'll update my pseudo logic above.

AutoSponge avatar May 21 '19 21:05 AutoSponge