From eadb107339341cc7b0deec1c516f303fba2c45d7 Mon Sep 17 00:00:00 2001 From: Haru Kim Date: Fri, 29 Nov 2024 20:04:58 +0900 Subject: [PATCH] Allow `workspace::ActivatePaneInDirection` to navigate out of the terminal panel (#21313) Enhancement for #21238 Release Notes: - N/A --- crates/terminal_view/src/terminal_panel.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crates/terminal_view/src/terminal_panel.rs b/crates/terminal_view/src/terminal_panel.rs index 1bc8a9e19b0e1af0e84209c354a32b36eb2d0583..1799d24c7dbc53ddc9ea5841ffb502804bb8223b 100644 --- a/crates/terminal_view/src/terminal_panel.rs +++ b/crates/terminal_view/src/terminal_panel.rs @@ -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(); } }) })