mirror of
https://github.com/storytold/photocraft.git
synced 2026-10-14 19:26:51 -04:00
* Type: Edit › Paste, Copy and Select › All work on the text being typed (#2893) While editing type, Edit › Cut already worked on the selected characters (#1355), but the other menu rows still ran their pixel commands: Edit › Paste tried to paste an image (and did nothing with text on the clipboard), Edit › Copy copied rendered pixels, and Select › All selected the canvas. Route them through the type editor like the keyboard: Paste asks the window for the clipboard text, which arrives as a Paste event and replaces the selection; Copy copies the selected characters; Select › All selects every character. Copy is enabled for a non-empty character selection, Paste and Select › All while typing. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Type tool: right-click menu while editing text (#2968) A right-click inside an on-canvas type edit opened nothing: the Type tool had no canvas menu, and the inline type editor is not an egui TextEdit, so the text-field menu doesn't reach it. It now opens Photoshop's type edit menu (canvas_tool_menu.rs TYPE_EDIT_MENU), built from existing commands: Undo, Cut, Copy, Paste and Select All (dispatched as the Edit/Select menu items, which act on the text being edited), Check Spelling..., Find and Replace Text..., Faux Bold/Italic (type.setStyle on the edit's selection, checked), Rasterize Type, Create Work Path, Convert to Shape (these and the paragraph/point conversions end the edit first), Horizontal/Vertical and the anti-alias modes (checked), Convert to Paragraph/Point Text and Warp Text.... The right-click keeps the text selection. While the menu is open the keyboard belongs to it: Esc closes only the menu instead of committing the edit. Agents open it through ui.pointer as for the other canvas menus. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>