mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-04 07:29:32 +00:00
Prevent remoting dialog from losing focus (#11820)
Release Notes: - N/A
This commit is contained in:
parent
748cd38d77
commit
bf4478703b
1 changed files with 3 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue