Form frames should not register empty access keys b=248566 r/sr=roc

This commit is contained in:
neil@parkwaycc.co.uk
2004-07-03 20:54:54 +00:00
parent 09fbb147a8
commit ab8bb55153
2 changed files with 2 additions and 2 deletions

View File

@@ -604,7 +604,7 @@ nsFormControlFrame::RegUnRegAccessKey(nsIPresContext* aPresContext, nsIFrame * a
#endif
}
if (NS_CONTENT_ATTR_NOT_THERE != rv) {
if (!accessKey.IsEmpty()) {
nsIEventStateManager *stateManager = aPresContext->EventStateManager();
if (aDoReg) {
return stateManager->RegisterAccessKey(aFrame->GetContent(), (PRUint32)accessKey.First());