зеркало из https://github.com/mozilla/pjs.git
Bug fix 14110
This commit is contained in:
Родитель
9d15dd5398
Коммит
39c08babb6
|
@ -294,6 +294,24 @@ nsTitledButtonFrame::Init(nsIPresContext* aPresContext,
|
|||
|
||||
UpdateAttributes(aPresContext, nsnull /* all */);
|
||||
|
||||
// the following block is to append the accesskey to to mTitle if there is an accesskey
|
||||
// but the mTitle doesn't have the character
|
||||
|
||||
mAccesskeyIndex = -1;
|
||||
nsAutoString accesskey;
|
||||
mContent->GetAttribute(kNameSpaceID_None, nsXULAtoms::accesskey,
|
||||
accesskey);
|
||||
if (accesskey != "") {
|
||||
mAccesskeyIndex = mTitle.Find(accesskey, PR_TRUE);
|
||||
if (mAccesskeyIndex == -1) {
|
||||
nsString tmpstring = "(" ;
|
||||
accesskey.ToUpperCase();
|
||||
tmpstring += accesskey;
|
||||
tmpstring += ")";
|
||||
mTitle += tmpstring;
|
||||
}
|
||||
}
|
||||
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче