mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-28 03:37:00 -06:00
The late-focus case in the original change has no reproducible path (#1339 already covers focus on the press frame), so the button-down defer is dropped. The real issue is the clicked_focus branch: a very short drag inside one character produces no text selection, egui still reports a click, and select-all on release replaced the drag. The press position is now remembered and a release more than three points away keeps the caret; a plain tap still selects all. Also fixes the test placement bug: the new test sat between the #[test] attribute and keyboard_focus_keeps_selecting_the_entire_numeric_field, so that test no longer ran. The regression test fails on the fork-point widgets.rs and passes with this change.