зеркало из https://github.com/mozilla/gecko-dev.git
72796 - alt+space depresses focused elt additionally. r=ben sr=hewitt
This commit is contained in:
Родитель
800ef03577
Коммит
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
|
// press and a key release. The scan code is used for
|
||||||
// translating ALT+number key combinations.
|
// 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)
|
if (!mIMEIsComposing)
|
||||||
result = OnKeyUp(wParam, (HIWORD(lParam)), lParam);
|
result = OnKeyUp(wParam, (HIWORD(lParam)), lParam);
|
||||||
else
|
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
|
// press and a key release. The scan code is used for
|
||||||
// translating ALT+number key combinations.
|
// 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) {
|
if (mIsAltDown && mIMEIsStatusChanged) {
|
||||||
mIMEIsStatusChanged = FALSE;
|
mIMEIsStatusChanged = FALSE;
|
||||||
result = PR_FALSE;
|
result = PR_FALSE;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче