[PATCH] user32: Handle VK_RETURN KeyDown events more properly in EDITcontrols.
Dmitry Timoshkov
dmitry at codeweavers.com
Fri Apr 18 20:52:38 CDT 2008
"El." <elptr at users.sourceforge.net> wrote:
> @@ -4606,6 +4606,10 @@ static LRESULT EDIT_WM_KeyDown(EDITSTATE *es, INT key)
> {
> HWND hwndParent = GetParent(es->hwndSelf);
> DWORD dw = SendMessageW( hwndParent, DM_GETDEFID, 0, 0 );
> +
> + if (GetClassLongW(hwndParent, GCW_ATOM) != WC_DIALOG)
> + break;
You need to add a test case first to confirm that the fix is correct, and
use EDIT_IsInsideDialog to detect if the parent is dialog.
--
Dmitry.
More information about the wine-devel
mailing list