fix bug 206376 accesskey doesn't work when field type is "file"

r=aaronleventhal sr=jst patched by neo.liu@sun.com
This commit is contained in:
robin.lu@sun.com
2004-06-21 02:46:13 +00:00
parent 1cc97dc113
commit 42b15db86d
2 changed files with 6 additions and 0 deletions

View File

@@ -189,10 +189,13 @@ nsFileControlFrame::CreateAnonymousContent(nsIPresContext* aPresContext,
// Initialize value when we create the content in case the value was set
// before we got here
nsAutoString value;
nsAutoString accessKey;
fileContent->GetValue(value);
textControl->SetValue(value);
fileContent->GetTabIndex(&tabIndex);
textControl->SetTabIndex(tabIndex);
fileContent->GetAccessKey(accessKey);
textControl->SetAccessKey(accessKey);
}
aChildList.AppendElement(mTextContent);
}