mirror of
https://github.com/storytold/figcraft.git
synced 2026-11-29 01:34:37 +01:00
Clicking into a fill's hex field and then clicking a section's row in the layers panel painted the section with the hex the field showed. The layers panel draws before the Design panel, so the row's click had already selected the section when the field let go: the field compared its text with the section's hex, found them different and committed it to the section. A colour typed and left with a press on the canvas went nowhere: the canvas selected and started a move before the field let go, the field committed into that move, and the unmoved release put the document back. The Design panel now shows the layers its field was edited for while the field has the keyboard and for the pass after, so whatever selects another layer first, the commit goes where it was typed. A press on the canvas takes the keyboard from a panel field before the panels draw, so the field commits before the press selects or starts a move. Rejected: keying the field by the layers it shows. The old field would no longer be drawn after the selection changed, so a typed colour would be dropped rather than committed.