Files
vectorcraft/docs
dotCooCoo 15949962fb Swatches: Shift+F10, the Menu key or a screen reader sets the stroke from a Swatch Strip chip
A right-click or an Alt-click on a Swatch Strip chip sets the stroke, but
keyboard and screen-reader users had no way to do the same. The strip now
reads the swatch's context request (SwatchOutput::context), so Shift+F10,
or the Menu key off macOS, on the focused chip sets the stroke as a
right-click does. Each chip offers AccessKit's ShowContextMenu action,
which sets the stroke too.

The swatch's request also counts any right-button release over it,
wherever the press began. The strip keeps its own press tracking for
the pointer, so a right-drag from elsewhere, a press on a layer over the
chip or a release in another document still sets nothing, and it takes
the context request only in a frame without a right-button release.

Each chip's control is now keyed by its document and the paint it sends
rather than by its place in the list, so a click whose press lands on one
swatch sets that swatch even when the list reorders before the release,
and a release after the active document changes sets nothing there.

The panel test harness gains offers_context_menu and show_context_menu
for a control's AccessKit context menu action.
2026-12-05 15:27:19 -08:00
..