mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
72796 - alt+space depresses focused elt additionally. r=ben sr=hewitt
This commit is contained in:
parent
800ef03577
commit
a5fd6359f0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user