Bug 1539677 - Do not highlight the password field when pressing enter on the footer or the insecure field warning. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D27405
This commit is contained in:
@@ -1273,7 +1273,7 @@ nsresult nsAutoCompleteController::EnterMatch(bool aIsPopupSelection,
|
||||
ClosePopup();
|
||||
|
||||
bool cancel;
|
||||
bool itemWasSelected = selectedIndex >= 0;
|
||||
bool itemWasSelected = selectedIndex >= 0 && !value.IsEmpty();
|
||||
input->OnTextEntered(aEvent, itemWasSelected, &cancel);
|
||||
|
||||
return NS_OK;
|
||||
|
||||
Reference in New Issue
Block a user