зеркало из https://github.com/mozilla/pjs.git
Bug 253693 - [Mac] Cmd+? should bring up Help Contents. r=mconnor,josh a=asa
This commit is contained in:
Родитель
119a1eb306
Коммит
c3168cc31f
|
@ -72,11 +72,12 @@
|
||||||
<menuitem oncommand="openHelp('firefox-help', 'chrome://browser/locale/help/help.rdf');"
|
<menuitem oncommand="openHelp('firefox-help', 'chrome://browser/locale/help/help.rdf');"
|
||||||
#ifdef XP_MACOSX
|
#ifdef XP_MACOSX
|
||||||
label="&helpContentsMac.label;"
|
label="&helpContentsMac.label;"
|
||||||
|
key="key_openHelpMacFrontend"/>
|
||||||
#else
|
#else
|
||||||
label="&helpContents.label;"
|
label="&helpContents.label;"
|
||||||
#endif
|
|
||||||
accesskey="&helpContents.accesskey;"
|
accesskey="&helpContents.accesskey;"
|
||||||
key="key_openHelp"/>
|
key="key_openHelp"/>
|
||||||
|
#endif
|
||||||
# Show IE Users menu item on Windows only
|
# Show IE Users menu item on Windows only
|
||||||
#ifdef XP_WIN
|
#ifdef XP_WIN
|
||||||
<menuitem label="&helpForIEUsers.label;"
|
<menuitem label="&helpForIEUsers.label;"
|
||||||
|
@ -107,8 +108,18 @@
|
||||||
# VK_HELP doesn't work on other platforms yet
|
# VK_HELP doesn't work on other platforms yet
|
||||||
#ifdef XP_MACOSX
|
#ifdef XP_MACOSX
|
||||||
keycode="&openHelpMac.commandkey;"/>
|
keycode="&openHelpMac.commandkey;"/>
|
||||||
|
# On mac, we support both the help key and Cmd+?
|
||||||
|
# ...Map Cmd+Shift+/, show Cmd+?
|
||||||
|
# (that's for en-US, it might be different for other keyboard layouts)
|
||||||
|
<key id="key_openHelpMac"
|
||||||
|
oncommand="openHelp('firefox-help');"
|
||||||
|
keycode="&openHelpMac2.commandkey;"
|
||||||
|
modifiers="&openHelpMac2.modifiers;"/>
|
||||||
|
<key id="key_openHelpMacFrontend"
|
||||||
|
key="&openHelpMac2.frontendCommandkey;"
|
||||||
|
modifiers="&openHelpMac2.frontendModifiers;"/>
|
||||||
#else
|
#else
|
||||||
keycode="&openHelp.commandkey;"/>
|
keycode="&openHelp.commandkey;"/>
|
||||||
#endif
|
#endif
|
||||||
</keyset>
|
</keyset>
|
||||||
|
|
||||||
|
|
|
@ -19,5 +19,13 @@
|
||||||
<!ENTITY helpForIEUsers.accesskey "I">
|
<!ENTITY helpForIEUsers.accesskey "I">
|
||||||
<!ENTITY openHelp.commandkey "VK_F1">
|
<!ENTITY openHelp.commandkey "VK_F1">
|
||||||
<!ENTITY openHelpMac.commandkey "VK_HELP">
|
<!ENTITY openHelpMac.commandkey "VK_HELP">
|
||||||
|
<!-- LOCALIZATION NOTE openHelpMac2.commandkey and openHelpMac2.modifiers
|
||||||
|
are all the necessary keys to hit OS X's open-help
|
||||||
|
keyboard (visible) shortcut (that's Cmd+? for most locales) -->
|
||||||
|
<!ENTITY openHelpMac2.commandkey "/">
|
||||||
|
<!ENTITY openHelpMac2.modifiers "accel,shift">
|
||||||
|
<!ENTITY openHelpMac2.frontendCommandkey "?">
|
||||||
|
<!ENTITY openHelpMac2.frontendModifiers "accel">
|
||||||
|
|
||||||
<!ENTITY promote.label "Promote &brandShortName;">
|
<!ENTITY promote.label "Promote &brandShortName;">
|
||||||
<!ENTITY promote.accesskey "P">
|
<!ENTITY promote.accesskey "P">
|
||||||
|
|
Загрузка…
Ссылка в новой задаче