Allow workspace::ActivatePaneInDirection to navigate out of the terminal panel (#21313)

Enhancement for #21238

Release Notes:

- N/A
This commit is contained in:
Haru Kim 2024-11-29 20:04:58 +09:00 committed by GitHub
parent 94faf9dd56
commit eadb107339
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -957,6 +957,13 @@ impl Render for TerminalPanel {
cx,
) {
cx.focus_view(&pane);
} else {
terminal_panel
.workspace
.update(cx, |workspace, cx| {
workspace.activate_pane_in_direction(action.0, cx)
})
.ok();
}
})
})