mirror of
https://github.com/storytold/texturecraft.git
synced 2026-11-23 16:00:45 +01:00
Previously, r.request_focus() was called unconditionally on every frame inside the layer rename editor, which continually wiped out r.lost_focus() in egui's memory and trapped keyboard focus inside the text edit. As a result, clicking outside never exited rename mode, Enter was unhandled, and keyboard shortcuts including Undo (Ctrl+Z) were permanently suppressed by egui_wants_keyboard_input. - Request focus via widget ID once when renaming starts instead of every frame - Submit and close rename mode on Enter or when focus is lost - Cancel without saving on Escape - Prevent row double-clicks, row clicks, and drag-and-drop from interfering with active text editing - Add regression test in session.rs verifying layer.rename and edit.undo Fixes #39