fix(scenario): restore focus only to the current parent form

This commit is contained in:
Codex
2026-09-11 08:07:41 -07:00
parent 8d55d2d2eb
commit 8895dd2e0f
12 changed files with 1126 additions and 60 deletions
@@ -306,8 +306,13 @@ fn chooser_rejects_old_results_after_context_recovery_reload_or_modal_and_keeps_
)));
}
_ => {
app.source_workspace
.edit("unfinished source".into(), Default::default());
app.source_workspace.edit(
"unfinished source".into(),
iced::widget::text_editor::Cursor {
position: iced::widget::text_editor::Position { line: 0, column: 0 },
selection: None,
},
);
}
}
let expected = raw(&app);
@@ -3,7 +3,7 @@
use super::*;
use iced::futures::StreamExt;
use iced::{
Event as Input, Point, Size, Theme, Vector,
Element, Event as Input, Point, Size, Theme, Vector,
advanced::{
Layout, Shell, layout,
widget::{Id as WidgetId, Operation, Tree, operation},
@@ -11,6 +11,7 @@ use iced::{
keyboard, mouse,
widget::{Space, column, container, opaque, scrollable, stack, text_input},
};
use oa_core::transitions::TransitionDirection;
#[derive(Default)]
struct Clipboard;