From bf4478703bca9eea3c6178a1752ae286a791eb06 Mon Sep 17 00:00:00 2001 From: Conrad Irwin Date: Tue, 14 May 2024 14:32:37 -0600 Subject: [PATCH] Prevent remoting dialog from losing focus (#11820) Release Notes: - N/A --- crates/recent_projects/src/dev_servers.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/recent_projects/src/dev_servers.rs b/crates/recent_projects/src/dev_servers.rs index ccde82383fa4c716455c224258915afd29c2334f..f5eb32b981aedb8e1735519d8d0ee814c4bd935f 100644 --- a/crates/recent_projects/src/dev_servers.rs +++ b/crates/recent_projects/src/dev_servers.rs @@ -992,6 +992,9 @@ impl Render for DevServerProjects { .on_mouse_down_out(cx.listener(|this, _, cx| { if matches!(this.mode, Mode::Default(None)) { cx.emit(DismissEvent) + } else { + this.focus_handle(cx).focus(cx); + cx.stop_propagation() } })) .pb_4()