Activate Zed window on external file drop

This commit is contained in:
Kirill Bulatov 2023-12-07 15:18:23 +02:00
parent b692b4c9c2
commit 6c653b9c05
2 changed files with 7 additions and 0 deletions

View file

@ -1284,6 +1284,7 @@ impl<'a> WindowContext<'a> {
})
}
FileDropEvent::Submit { position } => {
self.activate(true);
self.window.mouse_position = position;
InputEvent::MouseUp(MouseUpEvent {
button: MouseButton::Left,