debugger: Fix focus nits (#30547)
- Focus the console's query bar (if it exists) when focusing the console - Fix incorrect focus handles used for the console and terminal at the `Subview` level Release Notes: - N/A Co-authored-by: Piotr <piotr@zed.dev> Co-authored-by: Anthony <anthony@zed.dev>
This commit is contained in:
parent
f1fe505649
commit
2f26a860a9
3 changed files with 21 additions and 14 deletions
|
@ -278,7 +278,7 @@ pub(crate) fn deserialize_pane_layout(
|
|||
cx,
|
||||
)),
|
||||
DebuggerPaneItem::Console => Box::new(SubView::new(
|
||||
pane.focus_handle(cx),
|
||||
console.focus_handle(cx),
|
||||
console.clone().into(),
|
||||
DebuggerPaneItem::Console,
|
||||
Some(Box::new({
|
||||
|
@ -292,7 +292,7 @@ pub(crate) fn deserialize_pane_layout(
|
|||
cx,
|
||||
)),
|
||||
DebuggerPaneItem::Terminal => Box::new(SubView::new(
|
||||
pane.focus_handle(cx),
|
||||
terminal.focus_handle(cx),
|
||||
terminal.clone().into(),
|
||||
DebuggerPaneItem::Terminal,
|
||||
None,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue