mirror of
https://github.com/zed-industries/zed.git
synced 2026-07-10 00:13:29 +00:00
Panels previously returned a transient child editor's focus handle from Focusable::focus_handle. Containment checks (Zen-mode auto-close, toggle_panel_focus, dock focus subscriptions) and focus-the-panel callsites both used that handle, so focus moving to another element inside the panel (tool call output, thread title editor, a non-active terminal pane) looked like the panel losing focus and closed the zoomed panel. Focusable::focus_handle now always returns a stable handle tracked at the panel's root and is used for containment checks, while the new Panel::activation_focus_handle returns what should receive focus when the panel is activated (filter/commit/message editor) and must be a focus-tree descendant of the root. Migrated: AgentPanel (incl. thread views), CollabPanel, GitPanel, OutlinePanel, TerminalPanel. |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||
| LICENSE-GPL | ||