Before, terminal view focused the parent (pane) instead and, if terminal's search bar was open and focused, pane transferred the focus back
Unified · Split
| @@ -400,7 +400,8 @@ impl TerminalElement { · 399 unmodified lines | ||
| 400 | 400 | region = region |
| 401 | 401 | // Start selections |
| 402 | 402 | .on_down(MouseButton::Left, move |event, v: &mut TerminalView, cx| { |
| 403 | − cx.focus_parent(); | |
| 403 | + let terminal_view = cx.handle(); | |
| 404 | + cx.focus(&terminal_view); | |
| 404 | 405 | v.context_menu.update(cx, |menu, _cx| menu.delay_cancel()); |
| 405 | 406 | if let Some(conn_handle) = connection.upgrade(cx) { |
| 406 | 407 | conn_handle.update(cx, |terminal, cx| { |