зеркало из https://github.com/mozilla/pjs.git
Bug 315028 - Shift+Delete does not remove autocomplete entries (of [x]html forms). r=mconnor.
This commit is contained in:
Родитель
db11285afa
Коммит
bc60be9136
|
@ -604,21 +604,23 @@ nsFormFillController::KeyPress(nsIDOMEvent* aEvent)
|
|||
#ifndef XP_MACOSX
|
||||
mController->HandleDelete(&cancel);
|
||||
break;
|
||||
case nsIDOMKeyEvent::DOM_VK_BACK_SPACE:
|
||||
mController->HandleText(PR_FALSE);
|
||||
break;
|
||||
#else
|
||||
case nsIDOMKeyEvent::DOM_VK_BACK_SPACE:
|
||||
{
|
||||
PRBool isShift = PR_FALSE;
|
||||
keyEvent->GetShiftKey(&isShift);
|
||||
|
||||
if (isShift) {
|
||||
if (isShift)
|
||||
mController->HandleDelete(&cancel);
|
||||
break;
|
||||
}
|
||||
else
|
||||
mController->HandleText(PR_FALSE);
|
||||
|
||||
break;
|
||||
}
|
||||
// fall through
|
||||
#endif
|
||||
case nsIDOMKeyEvent::DOM_VK_BACK_SPACE:
|
||||
mController->HandleText(PR_FALSE);
|
||||
break;
|
||||
case nsIDOMKeyEvent::DOM_VK_UP:
|
||||
mController->HandleKeyNavigation(nsIAutoCompleteController::KEY_UP, &cancel);
|
||||
break;
|
||||
|
|
Загрузка…
Ссылка в новой задаче