mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-24 17:56:50 -06:00
The clipboard keys already went to a focused text field, but on Windows, Linux and the web the press that opens a menu takes the keyboard from the field, so Edit > Copy (and Cut, Paste, Select > All) acted on the art. The menu bar now keeps the field that had the keyboard, and its selection, while the menus are open; those four commands go to it as the events their keys send, the frame after the click that chose them, and give it the keyboard back. Everything else, and those commands with no field, run as before. The macOS menu bar shares the same helpers. Tests: Copy, Cut and Paste events in the W field and the Color panel's hex field edit the text, never the art; Select > All, Edit > Copy and Edit > Paste clicked in the in-window menus act on the field. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>