AccessibleSlider¶
Overview¶
A trait for subtypes of Node, used to make the Node behave like a 'slider' with assistive technology. This could be used by anything that moves along a 1-D line. An accessible slider behaves like:
- Arrow keys increment/decrement the slider by a specified step size.
- Holding shift with arrow keys will increment/decrement by alternative step size, usually smaller than default.
- Page Up and Page Down increments/decrements value by an alternative step size, usually larger than default.
- Home key sets value to its minimum.
- End key sets value to its maximum.
@author Jesse Greenberg (PhET Interactive Simulations)
Source Code¶
See the source for AccessibleSlider.ts in the sun repository.