зеркало из https://github.com/mozilla/pjs.git
Bug 262894. Assistive technology hotkeys that use Alt key trigger Mozilla menu bar. Also fixes Windows 95/98 bug where Alt+tab would focus menu bar. Patch by Neil Rashbrook. r=aaronlev, sr=bryner
This commit is contained in:
Родитель
e2988e936c
Коммит
c13434ebd2
|
@ -3923,10 +3923,16 @@ PRBool nsWindow::ProcessMessage(UINT msg, WPARAM wParam, LPARAM lParam, LRESULT
|
|||
break;
|
||||
}
|
||||
|
||||
if (!sIMEIsComposing)
|
||||
if (!sIMEIsComposing && (msg != WM_KEYUP || wParam != VK_MENU)) {
|
||||
// Ignore VK_MENU if it's not a system key release, so that the menu bar does not trigger
|
||||
// This helps avoid triggering the menu bar for ALT key accelerators used in
|
||||
// assistive technologies such as Window-Eyes and ZoomText, and when using Alt+Tab
|
||||
// to switch back to Mozilla in Windows 95 and Windows 98
|
||||
result = OnKeyUp(wParam, (HIWORD(lParam)), lParam);
|
||||
else
|
||||
}
|
||||
else {
|
||||
result = PR_FALSE;
|
||||
}
|
||||
|
||||
DispatchPendingEvents();
|
||||
break;
|
||||
|
|
Загрузка…
Ссылка в новой задаче