Skip to content

Commit

Permalink
Merge pull request #6868 from AvaloniaUI/fixes/focus-on-click-only-bu…
Browse files Browse the repository at this point in the history
…tton-down

[win32] only take focus on button down events.
  • Loading branch information
danwalmsley authored Nov 22, 2021
2 parents 424ece0 + e08ac56 commit a8713ad
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Windows/Avalonia.Win32/WindowImpl.AppWndProc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ protected virtual unsafe IntPtr AppWndProc(IntPtr hWnd, uint msg, IntPtr wParam,
case WindowsMessage.WM_MBUTTONUP:
case WindowsMessage.WM_XBUTTONUP:
{
shouldTakeFocus = ShouldTakeFocusOnClick;
if (ShouldIgnoreTouchEmulatedMessage())
{
break;
Expand Down

0 comments on commit a8713ad

Please sign in to comment.