- [User32] Patch by Dmitry Timoshkov : IsDialogMessage should allow control ids other than IDOK when processing WM_KEYDOWN.

svn path=/trunk/; revision=56604
This commit is contained in:
James Tabor 2012-05-17 17:54:09 +00:00
parent 755ed9d608
commit d20ffb99ef

View file

@ -2561,7 +2561,7 @@ IsDialogMessageW(
else if (DC_HASDEFID == HIWORD(dw = SendMessageW (hDlg, DM_GETDEFID, 0, 0)))
{
HWND hwndDef = DIALOG_IdToHwnd(hDlg, LOWORD(dw));
if (hwndDef ? IsWindowEnabled(hwndDef) : LOWORD(dw)==IDOK)
if (!hwndDef || IsWindowEnabled(hwndDef))
SendMessageW( hDlg, WM_COMMAND, MAKEWPARAM( LOWORD(dw), BN_CLICKED ), (LPARAM)hwndDef);
}
else