From dc4c9da44fa43a29d40293e27085963743e7a08a Mon Sep 17 00:00:00 2001 From: Aric Stewart Date: Mon, 30 Apr 2007 14:20:20 -0500 Subject: [PATCH] ole32: Accelerators, like for the menu ones, should not fire on the keyup message. --- dlls/ole32/ole2.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dlls/ole32/ole2.c b/dlls/ole32/ole2.c index 908eb09d1d..127ef87654 100644 --- a/dlls/ole32/ole2.c +++ b/dlls/ole32/ole2.c @@ -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) -- 2.32.0.93.g670b81a890