зеркало из https://github.com/mozilla/pjs.git
Ctrl+PgDn/PgUp don't work when the focus is in an autocomplete textbox b=290177 r=Enn a=dsicore
This commit is contained in:
Родитель
1d94c5e647
Коммит
92b7863672
|
@ -672,12 +672,21 @@ nsFormFillController::KeyPress(nsIDOMEvent* aEvent)
|
|||
break;
|
||||
}
|
||||
#endif
|
||||
case nsIDOMKeyEvent::DOM_VK_PAGE_UP:
|
||||
case nsIDOMKeyEvent::DOM_VK_PAGE_DOWN:
|
||||
{
|
||||
PRBool isCtrl, isAlt, isMeta;
|
||||
keyEvent->GetCtrlKey(&isCtrl);
|
||||
keyEvent->GetAltKey(&isAlt);
|
||||
keyEvent->GetMetaKey(&isMeta);
|
||||
if (isCtrl || isAlt || isMeta)
|
||||
break;
|
||||
}
|
||||
/* fall through */
|
||||
case nsIDOMKeyEvent::DOM_VK_UP:
|
||||
case nsIDOMKeyEvent::DOM_VK_DOWN:
|
||||
case nsIDOMKeyEvent::DOM_VK_LEFT:
|
||||
case nsIDOMKeyEvent::DOM_VK_RIGHT:
|
||||
case nsIDOMKeyEvent::DOM_VK_PAGE_UP:
|
||||
case nsIDOMKeyEvent::DOM_VK_PAGE_DOWN:
|
||||
mController->HandleKeyNavigation(k, &cancel);
|
||||
break;
|
||||
case nsIDOMKeyEvent::DOM_VK_ESCAPE:
|
||||
|
|
Загрузка…
Ссылка в новой задаче