diff --git a/mozilla/layout/forms/nsFileControlFrame.cpp b/mozilla/layout/forms/nsFileControlFrame.cpp index 93c48f638bf..2af259f6ff2 100644 --- a/mozilla/layout/forms/nsFileControlFrame.cpp +++ b/mozilla/layout/forms/nsFileControlFrame.cpp @@ -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); } diff --git a/mozilla/layout/html/forms/src/nsFileControlFrame.cpp b/mozilla/layout/html/forms/src/nsFileControlFrame.cpp index 93c48f638bf..2af259f6ff2 100644 --- a/mozilla/layout/html/forms/src/nsFileControlFrame.cpp +++ b/mozilla/layout/html/forms/src/nsFileControlFrame.cpp @@ -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); }