mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-06 05:53:08 -05:00
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.