mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-03 06:31:42 +01:00
Space right-click test: use Id::unique (#11271)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
5ee5f8fffb
commit
dbaeae1723
1 file changed
+1
-1
@@ -716,7 +716,7 @@ fn agent_space_right_click_with_a_text_field_focused_keeps_the_tool() {
|
||||
app.run("file.new", json!({"width": 32, "height": 32})).unwrap();
|
||||
app.sync_views();
|
||||
app.ui.tool = crate::state::Tool::Move;
|
||||
let field = egui::Id::new("a focused text field");
|
||||
let field = egui::Id::unique("a focused text field");
|
||||
egui::text_edit::TextEditState::default().store(&ctx, field);
|
||||
ctx.memory_mut(|m| m.request_focus(field));
|
||||
assert!(ctx.text_edit_focused(), "the field has focus");
|
||||
|
||||
Reference in new issue
Block a user