mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-24 17:56:50 -06:00
A dialog's slider could take the keyboard focus from Tab, but it responded only to the pointer, so an arrow key moved the focus to the nearest widget in the arrow's direction and a keyboard user could not move the slider. Screen readers could not step it either. These dialog sliders, each beside a number field, now respond to the keyboard. A click or Tab gives a slider the focus, which an outline shows. Then the Right and Up arrows step the field's number up to the next whole number and the Left and Down arrows step it down to the next whole number. Shift with an arrow, Page Up and Page Down step it by ten, and Home and End set the slider's first and last value. No step goes past either end, and a number past the slider's range steps from its nearer end. Screen readers' increment and decrement actions step the slider as the arrows do. A step sets the field's number in the field's own unit, so a Move slider in a millimeter document steps one millimeter. When the field holds a number past the slider's range, Home, End or a drag to that end of a form slider now sets the end's number; before, such a drag left the field's number as it was. The form sliders get this through the new color_slider_stepped, next to color_slider_valued, and so do the Pencil, Paintbrush and Smooth Fidelity, the Perspective Grid's Opacity, the 3D dialogs' sliders and the flattener's balance, which the Flattener Preview panel also shows. The Color panel, Swatch Options, the Color Picker's channel slider, the Navigator and the Character panel keep their sliders as they were. Docs: docs/target-app-parity.md.