Improve drag and drop to look and feel better
WIP: Change rendering of drag and drop based on alt-modifier
This commit is contained in:
parent
9bff3b6916
commit
f3b91082a6
5 changed files with 102 additions and 21 deletions
|
@ -33,8 +33,8 @@ use gpui::{
|
|||
},
|
||||
impl_actions,
|
||||
platform::{
|
||||
CursorStyle, MouseButton, PathPromptOptions, Platform, PromptLevel, WindowBounds,
|
||||
WindowOptions,
|
||||
CursorStyle, ModifiersChangedEvent, MouseButton, PathPromptOptions, Platform, PromptLevel,
|
||||
WindowBounds, WindowOptions,
|
||||
},
|
||||
AnyModelHandle, AnyViewHandle, AnyWeakViewHandle, AppContext, AsyncAppContext, Entity,
|
||||
ModelContext, ModelHandle, SizeConstraint, Subscription, Task, View, ViewContext, ViewHandle,
|
||||
|
@ -3807,6 +3807,10 @@ impl View for Workspace {
|
|||
cx.focus(&self.active_pane);
|
||||
}
|
||||
}
|
||||
|
||||
fn modifiers_changed(&mut self, e: &ModifiersChangedEvent, cx: &mut ViewContext<Self>) -> bool {
|
||||
DragAndDrop::<Workspace>::update_modifiers(e.modifiers, cx)
|
||||
}
|
||||
}
|
||||
|
||||
impl ViewId {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue