diff --git a/widget/src/windows/nsWindow.cpp b/widget/src/windows/nsWindow.cpp index 4edbb4fed3fa..8bcc7908e621 100644 --- a/widget/src/windows/nsWindow.cpp +++ b/widget/src/windows/nsWindow.cpp @@ -3317,6 +3317,12 @@ PRBool nsWindow::ProcessMessage(UINT msg, WPARAM wParam, LPARAM lParam, LRESULT // press and a key release. The scan code is used for // translating ALT+number key combinations. + // ignore [shift+]alt+space so the OS can handle it + if (mIsAltDown && !mIsControlDown && IS_VK_DOWN(NS_VK_SPACE)) { + result = PR_FALSE; + break; + } + if (!mIMEIsComposing) result = OnKeyUp(wParam, (HIWORD(lParam)), lParam); else @@ -3352,6 +3358,12 @@ PRBool nsWindow::ProcessMessage(UINT msg, WPARAM wParam, LPARAM lParam, LRESULT // press and a key release. The scan code is used for // translating ALT+number key combinations. + // ignore [shift+]alt+space so the OS can handle it + if (mIsAltDown && !mIsControlDown && IS_VK_DOWN(NS_VK_SPACE)) { + result = PR_FALSE; + break; + } + if (mIsAltDown && mIMEIsStatusChanged) { mIMEIsStatusChanged = FALSE; result = PR_FALSE;