From e248ecf0c9dff7cb38fd06f8c81d910506af0e76 Mon Sep 17 00:00:00 2001 From: "masayuki%d-toybox.com" Date: Tue, 28 Jun 2005 17:21:21 +0000 Subject: [PATCH] Bug 298742 intl.properties's "intl.menuitems.alwaysappendaccesskeys" is ignored always r=jst, sr=shaver, a=benjamin --- layout/xul/base/src/nsTextBoxFrame.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/layout/xul/base/src/nsTextBoxFrame.cpp b/layout/xul/base/src/nsTextBoxFrame.cpp index 9a6ce1c977cc..4f091235af44 100644 --- a/layout/xul/base/src/nsTextBoxFrame.cpp +++ b/layout/xul/base/src/nsTextBoxFrame.cpp @@ -198,8 +198,9 @@ nsTextBoxFrame::AlwaysAppendAccessKey() { gAccessKeyPrefInitialized = PR_TRUE; - gAlwaysAppendAccessKey = - nsContentUtils::GetCharPref("intl.menuitems.alwaysappendaccesskeys").Equals("true"); + const char* prefName = "intl.menuitems.alwaysappendaccesskeys"; + nsAdoptingString val = nsContentUtils::GetLocalizedStringPref(prefName); + gAlwaysAppendAccessKey = val.Equals(NS_LITERAL_STRING("true")); } return gAlwaysAppendAccessKey; }