зеркало из https://github.com/mozilla/gecko-dev.git
r=akkana, a=brendan Can't override accelerators properly which we will be doing on OS/2
This commit is contained in:
Родитель
bc69083f14
Коммит
e2e26b4896
|
@ -1411,7 +1411,7 @@ nsMenuFrame::BuildAcceleratorText(nsString& aAccelString)
|
|||
NS_WITH_SERVICE(nsIPref, prefs, NS_PREF_CONTRACTID, &rv);
|
||||
if (NS_SUCCEEDED(rv) && prefs)
|
||||
{
|
||||
rv = prefs->GetIntPref("ui.key.acceleratorKey", &accelKey);
|
||||
rv = prefs->GetIntPref("ui.key.accelKey", &accelKey);
|
||||
}
|
||||
#ifdef DEBUG_akkana
|
||||
else
|
||||
|
|
|
@ -437,7 +437,7 @@ pref("security.xpconnect.plugin.unrestricted", true);
|
|||
|
||||
// Modifier key prefs: default to Windows settings,
|
||||
// menu access key = alt, accelerator key = control.
|
||||
pref("ui.key.acceleratorKey", 17);
|
||||
pref("ui.key.accelKey", 17);
|
||||
pref("ui.key.menuAccessKey", 18);
|
||||
pref("ui.key.menuAccessKeyFocuses", false);
|
||||
|
||||
|
|
|
@ -140,7 +140,7 @@ pref("font.name.fantasy.zh-TW", "XXX.fantasy");
|
|||
|
||||
// Override the Windows settings: no menu key, meta accelerator key.
|
||||
pref("ui.key.menuAccessKey", 0);
|
||||
pref("ui.key.acceleratorKey", 224);
|
||||
pref("ui.key.accelKey", 224);
|
||||
|
||||
// This overrides the setting in config.js (which points to the Windows page)
|
||||
config("menu.help.item_0.label","Help Contents");
|
||||
|
|
|
@ -497,7 +497,7 @@ nsXULKeyListenerImpl::Init(
|
|||
NS_WITH_SERVICE(nsIPref, prefs, NS_PREF_CONTRACTID, &rv);
|
||||
if (NS_SUCCEEDED(rv) && prefs)
|
||||
{
|
||||
rv = prefs->GetIntPref("ui.key.acceleratorKey",
|
||||
rv = prefs->GetIntPref("ui.key.accelKey",
|
||||
(PRInt32*)&mXULKeyModifier);
|
||||
}
|
||||
#ifdef DEBUG_akkana
|
||||
|
|
Загрузка…
Ссылка в новой задаче