зеркало из https://github.com/mozilla/gecko-dev.git
bug=15184 Made <input type=password> a form submitter. Hitting return in a password field
will now submit the form. r=rods@netscape.com
This commit is contained in:
Родитель
ac9115fd89
Коммит
0d5889ab19
|
@ -315,7 +315,7 @@ void nsFormFrame::AddFormControlFrame(nsIFormControlFrame& aFrame)
|
|||
aFrame.GetType(&type);
|
||||
|
||||
// a solo text control can be a submitter (if return is hit)
|
||||
if (NS_FORM_INPUT_TEXT == type) {
|
||||
if ((NS_FORM_INPUT_TEXT == type) || (NS_FORM_INPUT_PASSWORD == type)) {
|
||||
mTextSubmitter = (nsnull == mTextSubmitter) ? &aFrame : nsnull;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче