From 36ed2bc3588a7d1674b4ec9cc4b88ebec94f082b Mon Sep 17 00:00:00 2001 From: "ere%atp.fi" Date: Fri, 30 Apr 2004 06:40:46 +0000 Subject: [PATCH] Fix for regression bug 241447: typed characters are doubled if flash content is playing. r=dean_tessman sr=bryner --- widget/src/windows/nsWindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/widget/src/windows/nsWindow.cpp b/widget/src/windows/nsWindow.cpp index a3fdae8813e1..206a6727eb64 100644 --- a/widget/src/windows/nsWindow.cpp +++ b/widget/src/windows/nsWindow.cpp @@ -3009,14 +3009,14 @@ BOOL nsWindow::OnKeyDown(UINT aVirtualKeyCode, UINT aScanCode, LPARAM aKeyData) } MSG msg; - BOOL gotMsg = ::PeekMessage(&msg, mWnd, 0, 0, PM_NOREMOVE | PM_NOYIELD); + BOOL gotMsg = ::PeekMessage(&msg, mWnd, WM_KEYFIRST, WM_KEYLAST, PM_NOREMOVE | PM_NOYIELD); // Enter and backspace are always handled here to avoid for example the // confusion between ctrl-enter and ctrl-J. if (virtualKeyCode == NS_VK_RETURN || virtualKeyCode == NS_VK_BACK) { // Remove a possible WM_CHAR or WM_SYSCHAR from the message queue if (gotMsg && (msg.message == WM_CHAR || msg.message == WM_SYSCHAR)) { - ::GetMessage(&msg, mWnd, 0, 0); + ::GetMessage(&msg, mWnd, WM_KEYFIRST, WM_KEYLAST); } } else if (gotMsg &&