From a5fd6359f050223583f3234c424c52e416af4d1c Mon Sep 17 00:00:00 2001 From: "blakeross%telocity.com" Date: Sat, 2 Feb 2002 05:26:36 +0000 Subject: [PATCH] 72796 - alt+space depresses focused elt additionally. r=ben sr=hewitt --- widget/src/windows/nsWindow.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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;