mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-27 11:17:01 -06:00
In the Color Picker, Tab out of an edited field gives the next field the focus in the same frame, and the picker applies the edit once it has drawn its fields. The # field after Y took the focus showing the color from before the edit and kept that text while it had the focus, so the next Tab committed it and reset every other field. Shift+Tab into the # field from K had the same effect. Swatch Options and New Swatch draw a copy of the field, and Tab from the last component field into it had the same effect there. widgets::hex_field and the Swatch Options copy now show the current color until something is typed into them, also while they have the focus, and commit only what was typed. The change covers the # fields of the Color Picker, Swatch Options, New Swatch, the Color panel, Color Themes, Recolor Artwork, Document Setup and Define Perspective Grid. widgets::opt_field, which draws the Stroke panel's dash and gap fields, kept its text the same way: passing through a blank gap after typing a dash committed the blank, and the panel applied the same dash pattern again. It gets the same change. When its value changes while it has the focus and nothing has been typed into it, all of the new value is selected, as on keyboard focus.