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:
neil%parkwaycc.co.uk 2007-12-18 09:16:42 +00:00
Родитель 1d94c5e647
Коммит 92b7863672
1 изменённых файлов: 11 добавлений и 2 удалений

Просмотреть файл

@ -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: