project_panel: Fix drop highlight is not being removed when esc
is pressed (#32115)
Release Notes: - Fixed the issue where pressing `esc` would cancel the drag-and-drop operation but wouldn’t clear the drop highlight on directories.
This commit is contained in:
parent
8191a5339d
commit
7c64737e00
1 changed files with 2 additions and 0 deletions
|
@ -1383,6 +1383,8 @@ impl ProjectPanel {
|
|||
|
||||
fn cancel(&mut self, _: &menu::Cancel, window: &mut Window, cx: &mut Context<Self>) {
|
||||
if cx.stop_active_drag(window) {
|
||||
self.drag_target_entry.take();
|
||||
self.hover_expand_task.take();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue