From 2dd7ef01226b78cfcf5d435e829092876f97b65a Mon Sep 17 00:00:00 2001 From: "robin.lu%sun.com" Date: Mon, 21 Jun 2004 02:46:13 +0000 Subject: [PATCH] fix bug 206376 accesskey doesn't work when field type is "file" r=aaronleventhal sr=jst patched by neo.liu@sun.com git-svn-id: svn://10.0.0.236/trunk@158242 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/forms/nsFileControlFrame.cpp | 3 +++ mozilla/layout/html/forms/src/nsFileControlFrame.cpp | 3 +++ 2 files changed, 6 insertions(+) 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); }