Preserve diagram focus across edits, history and passive saves

This commit is contained in:
2026-09-12 06:40:43 -07:00
parent f7d84faf30
commit 24bb24839b
6 changed files with 354 additions and 11 deletions
@@ -10,8 +10,12 @@ pub use control::Control;
pub use viewport::Viewport;
pub fn keyboard_enabled(app: &crate::app::App) -> bool {
!app.busy
&& !app.hosted.visible
!app.busy && keyboard_owner_enabled(app)
}
/// Passive I/O suspends commands without changing the logical input owner.
pub(crate) fn keyboard_owner_enabled(app: &crate::app::App) -> bool {
!app.hosted.visible
&& app.workflow.is_none()
&& app.file_prompt.is_none()
&& !app.delete_pending