Browse Source
Merge pull request #2457 from robbieknuth/bugs/2419
Do not fire key event before mouse has moved (drag/drop)
pull/2461/head
Steven Kirk
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
1 deletions
-
src/Avalonia.Controls/Platform/InProcessDragSource.cs
|
|
|
@ -147,7 +147,10 @@ namespace Avalonia.Platform |
|
|
|
e.Handled = true; |
|
|
|
} |
|
|
|
else if (e.Key == Key.LeftCtrl || e.Key == Key.RightCtrl || e.Key == Key.LeftAlt || e.Key == Key.RightAlt) |
|
|
|
RaiseEventAndUpdateCursor(RawDragEventType.DragOver, _lastRoot, _lastPosition, e.Modifiers); |
|
|
|
{ |
|
|
|
if (_lastRoot != null) |
|
|
|
RaiseEventAndUpdateCursor(RawDragEventType.DragOver, _lastRoot, _lastPosition, e.Modifiers); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private void ProcessMouseEvents(RawMouseEventArgs e) |
|
|
|
|