commit | a5fd32eb84989e39b962798e3b3e5ec7121d7fdb | [log] [tgz] |
---|---|---|
author | Vincent Povirk <vincent@codeweavers.com> | Sat Apr 24 14:33:00 2010 -0500 |
committer | Alexandre Julliard <julliard@winehq.org> | Sun Apr 25 07:38:10 2010 -0500 |
tree | 327ee15b7ce058926dd805f11b716d4865099fdc | |
parent | 62644ee1a2763ed6a1ffabaa4a1780bf6db46805 [diff] [blame] |
user32: Focus editboxes when the context menu is opened.
diff --git a/dlls/user32/edit.c b/dlls/user32/edit.c index 9898bc4..05a68ea 100644 --- a/dlls/user32/edit.c +++ b/dlls/user32/edit.c
@@ -3115,6 +3115,9 @@ y = rc.top + (rc.bottom - rc.top) / 2; } + if (!(es->flags & EF_FOCUSED)) + SetFocus(es->hwndSelf); + TrackPopupMenu(popup, TPM_LEFTALIGN | TPM_RIGHTBUTTON, x, y, 0, es->hwndSelf, NULL); DestroyMenu(menu); }