зеркало из https://github.com/mozilla/pjs.git
Bug #242672 --> Help menu should conform to Apple Human Interface Guidelines
Patch by Jon Baumgartner
This commit is contained in:
Родитель
4c16bc81bb
Коммит
e7507552c9
|
@ -1621,31 +1621,21 @@
|
|||
#endif
|
||||
|
||||
<!-- Help -->
|
||||
#ifdef XP_MACOSX
|
||||
<!-- Different order for OS X. Also remove "About ..." -->
|
||||
|
||||
<menu label="&helpMenu.label;" accesskey="&helpMenu.accesskey;">
|
||||
<menupopup id="menu_HelpPopup">
|
||||
#ifdef XP_MACOSX
|
||||
<menuitem id="hintsAndTips" label="&hintsAndTips.label;" key="key_macHelp" oncommand="loadThrobberUrl('mailnews.hints_and_tips.url');"/>
|
||||
<menuitem id="releaseNotes" accesskey="&releaseCmd.accesskey;" label="&releaseCmd.label;" oncommand="loadThrobberUrl('mailnews.release_notes.url');"/>
|
||||
<menuseparator id="menu_HelpAboutSeparator"/>
|
||||
<menuitem id="aboutName" accesskey="&aboutCmd.accesskey;"
|
||||
label="&aboutCmd.label;"
|
||||
oncommand="window.openDialog('chrome://messenger/content/aboutDialog.xul', 'About', 'modal,centerscreen,chrome,resizable=no');"/>
|
||||
</menupopup>
|
||||
</menu>
|
||||
#else
|
||||
<menu label="&helpMenu.label;" accesskey="&helpMenu.accesskey;">
|
||||
<menupopup id="menu_HelpPopup">
|
||||
<menuitem id="releaseNotes" accesskey="&releaseCmd.accesskey;" label="&releaseCmd.label;" oncommand="loadThrobberUrl('mailnews.release_notes.url');"/>
|
||||
<menuitem id="hintsAndTips" accesskey="&hintsAndTips.accesskey;" label="&hintsAndTips.label;" oncommand="loadThrobberUrl('mailnews.hints_and_tips.url');"/>
|
||||
#endif
|
||||
<menuseparator id="menu_HelpAboutSeparator"/>
|
||||
<menuitem id="aboutName" accesskey="&aboutCmd.accesskey;"
|
||||
label="&aboutCmd.label;"
|
||||
oncommand="window.openDialog('chrome://messenger/content/aboutDialog.xul', 'About', 'modal,centerscreen,chrome,resizable=no');"/>
|
||||
</menupopup>
|
||||
</menu>
|
||||
#endif
|
||||
|
||||
<spacer flex="100%"/>
|
||||
</menubar>
|
||||
|
|
|
@ -146,6 +146,7 @@
|
|||
#ifdef XP_MACOSX
|
||||
<!-- Mac Window keys -->
|
||||
<key id="key_minimizeWindow" command="minimizeWindow" key="&minimizeWindow.key;" modifiers="accel"/>
|
||||
<key id="key_macHelp" key="&hintsAndTipsMac.commandkey;" oncommand="loadThrobberUrl('mailnews.hints_and_tips.url');" modifiers="accel"/>
|
||||
#endif
|
||||
</keyset>
|
||||
|
||||
|
@ -444,18 +445,21 @@
|
|||
</menupopup>
|
||||
</menu>
|
||||
#endif
|
||||
|
||||
<menu label="&helpMenu.label;" accesskey="&helpMenu.accesskey;">
|
||||
<menupopup id="menu_HelpPopup">
|
||||
#ifdef XP_MACOSX
|
||||
<menuitem id="hintsAndTips" label="&hintsAndTips.label;" key="key_macHelp" oncommand="loadThrobberUrl('mailnews.hints_and_tips.url');"/>
|
||||
<menuitem id="releaseNotes" accesskey="&releaseCmd.accesskey;" label="&releaseCmd.label;" oncommand="loadThrobberUrl('mailnews.release_notes.url');"/>
|
||||
#else
|
||||
<menuitem id="releaseNotes" accesskey="&releaseCmd.accesskey;" label="&releaseCmd.label;" oncommand="loadThrobberUrl('mailnews.release_notes.url');"/>
|
||||
<menuitem id="hintsAndTips" accesskey="&hintsAndTips.accesskey;" label="&hintsAndTips.label;" oncommand="loadThrobberUrl('mailnews.hints_and_tips.url');"/>
|
||||
#endif
|
||||
<menuseparator id="menu_HelpAboutSeparator"/>
|
||||
<menuitem id="aboutName" accesskey="&aboutCmd.accesskey;"
|
||||
label="&aboutCmd.label;"
|
||||
oncommand="window.openDialog('chrome://messenger/content/aboutDialog.xul', 'About', 'modal,centerscreen,chrome,resizable=no');"/>
|
||||
</menupopup>
|
||||
</menu>
|
||||
|
||||
</menubar>
|
||||
</toolbaritem>
|
||||
</toolbar>
|
||||
|
|
|
@ -125,6 +125,7 @@
|
|||
<!ENTITY releaseCmd.accesskey "R">
|
||||
<!ENTITY hintsAndTips.label "&brandShortName; Help">
|
||||
<!ENTITY hintsAndTips.accesskey "h">
|
||||
<!ENTITY hintsAndTipsMac.commandkey "?">
|
||||
<!ENTITY aboutCmd.label "About &brandShortName;">
|
||||
<!ENTITY aboutCmd.accesskey "A">
|
||||
|
||||
|
|
|
@ -209,6 +209,7 @@
|
|||
#ifdef XP_MACOSX
|
||||
<!-- Mac Window Menu -->
|
||||
<key id="key_minimizeWindow" command="minimizeWindow" key="&minimizeWindow.key;" modifiers="accel"/>
|
||||
<key id="key_macHelp" key="&hintsAndTipsMac.commandkey;" oncommand="loadThrobberUrl('mailnews.hints_and_tips.url');" modifiers="accel"/>
|
||||
#endif
|
||||
|
||||
</keyset>
|
||||
|
@ -492,8 +493,13 @@
|
|||
|
||||
<menu label="&helpMenu.label;" accesskey="&helpMenu.accesskey;">
|
||||
<menupopup id="menu_HelpPopup">
|
||||
#ifdef XP_MACOSX
|
||||
<menuitem id="hintsAndTips" label="&hintsAndTips.label;" key="key_macHelp" oncommand="loadThrobberUrl('mailnews.hints_and_tips.url');"/>
|
||||
<menuitem id="releaseNotes" accesskey="&releaseCmd.accesskey;" label="&releaseCmd.label;" oncommand="loadThrobberUrl('mailnews.release_notes.url');"/>
|
||||
#else
|
||||
<menuitem id="releaseNotes" accesskey="&releaseCmd.accesskey;" label="&releaseCmd.label;" oncommand="loadThrobberUrl('mailnews.release_notes.url');"/>
|
||||
<menuitem id="hintsAndTips" accesskey="&hintsAndTips.accesskey;" label="&hintsAndTips.label;" oncommand="loadThrobberUrl('mailnews.hints_and_tips.url');"/>
|
||||
#endif
|
||||
<menuseparator id="menu_HelpAboutSeparator"/>
|
||||
<menuitem id="aboutName" accesskey="&aboutCmd.accesskey;"
|
||||
label="&aboutCmd.label;"
|
||||
|
|
|
@ -183,6 +183,7 @@
|
|||
<!ENTITY releaseCmd.accesskey "R">
|
||||
<!ENTITY hintsAndTips.label "&brandShortName; Help">
|
||||
<!ENTITY hintsAndTips.accesskey "h">
|
||||
<!ENTITY hintsAndTipsMac.commandkey "?">
|
||||
<!ENTITY aboutCmd.label "About &brandShortName;">
|
||||
<!ENTITY aboutCmd.accesskey "A">
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче