This commit is contained in:
rchen%netscape.com 2000-01-19 01:47:52 +00:00
Родитель 9d15dd5398
Коммит 39c08babb6
1 изменённых файлов: 18 добавлений и 0 удалений

Просмотреть файл

@ -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;
}