ole32: Accelerators, like for the menu ones, should not fire on the keyup message.

This commit is contained in:
Aric Stewart 2007-04-30 14:20:20 -05:00 committed by Alexandre Julliard
parent 622ee1c4cc
commit dc4c9da44f
1 changed files with 1 additions and 2 deletions

View File

@ -1713,9 +1713,8 @@ BOOL WINAPI IsAccelerator(HACCEL hAccel, int cAccelEntries, LPMSG lpMsg, WORD* l
return FALSE;
}
if((lpMsg->message != WM_KEYDOWN &&
lpMsg->message != WM_KEYUP &&
lpMsg->message != WM_SYSKEYDOWN &&
lpMsg->message != WM_SYSKEYUP &&
lpMsg->message != WM_SYSCHAR &&
lpMsg->message != WM_CHAR)) return FALSE;
lpAccelTbl = HeapAlloc(GetProcessHeap(), 0, cAccelEntries * sizeof(ACCEL));
if (NULL == lpAccelTbl)