From 15898dc0bb012722e9fbe8f7fa734871906cc18c Mon Sep 17 00:00:00 2001 From: "neil%parkwaycc.co.uk" Date: Sat, 3 Jul 2004 20:54:54 +0000 Subject: [PATCH] Form frames should not register empty access keys b=248566 r/sr=roc git-svn-id: svn://10.0.0.236/trunk@158724 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/forms/nsFormControlFrame.cpp | 2 +- mozilla/layout/html/forms/src/nsFormControlFrame.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/layout/forms/nsFormControlFrame.cpp b/mozilla/layout/forms/nsFormControlFrame.cpp index 8c271db0f48..229ba97405c 100644 --- a/mozilla/layout/forms/nsFormControlFrame.cpp +++ b/mozilla/layout/forms/nsFormControlFrame.cpp @@ -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()); diff --git a/mozilla/layout/html/forms/src/nsFormControlFrame.cpp b/mozilla/layout/html/forms/src/nsFormControlFrame.cpp index 8c271db0f48..229ba97405c 100644 --- a/mozilla/layout/html/forms/src/nsFormControlFrame.cpp +++ b/mozilla/layout/html/forms/src/nsFormControlFrame.cpp @@ -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());