mirror of
https://github.com/storytold/effectcraft.git
synced 2026-10-27 03:28:22 -06:00
The macOS menu bar takes Cmd+C, Cmd+X, Cmd+V, Cmd+A, Cmd+Z and Shift+Cmd+Z before any window sees them. The menu only checked the main window's keyboard focus, so with a text field focused in a floating panel's own OS window those keys ran Copy, Paste or Undo on the project. The menu now asks craft-ui which window is typing and sends the field its keys there (the window fetches the clipboard text for Paste), and keeps the Edit items a field takes enabled while one has the keyboard: Paste followed the project clipboard and was greyed out with nothing copied there.