Bug 238954 - Support Command-. (Command-Period) keyboard shortcut for Stop on OS X. r=mconnor

This commit is contained in:
mozilla.mano%sent.com 2005-03-02 05:43:57 +00:00
parent 31cc6828da
commit 3821baf94b
3 changed files with 10 additions and 1 deletions

View File

@ -155,7 +155,14 @@
</menupopup>
</menu>
<menuseparator/>
<menuitem label="&stopCmd.label;" accesskey="&stopCmd.accesskey;" command="Browser:Stop" key="key_stop"/>
<menuitem label="&stopCmd.label;"
accesskey="&stopCmd.accesskey;"
command="Browser:Stop"
#ifdef XP_MACOSX
key="key_stop_mac"/>
#else
key="key_stop"/>
#endif
<menuitem label="&reloadCmd.label;" accesskey="&reloadCmd.accesskey;" command="Browser:Reload" key="key_reload"/>
<menuseparator/>
<menu id="viewTextZoomMenu" label="&textSize.label;" accesskey="&textSize.accesskey;">

View File

@ -309,6 +309,7 @@
# even if the stop button and menuitem are disabled (see Bug 284140)
<key id="key_stop" keycode="VK_ESCAPE" oncommand="BrowserStop();"/>
#ifdef XP_MACOSX
<key id="key_stop_mac" modifiers="accel" key="&stopCmd.macCommandKey;" oncommand="BrowserStop();"/>
<key id="key_gotoHistory" key="&historySidebarCmd.commandKey;" command="viewHistorySidebar" modifiers="accel,shift"/>
#else
<key id="key_gotoHistory" key="&historySidebarCmd.commandKey;" command="viewHistorySidebar" modifiers="accel"/>

View File

@ -75,6 +75,7 @@
<!ENTITY reloadButton.tooltip "Reload current page">
<!ENTITY stopCmd.label "Stop">
<!ENTITY stopCmd.accesskey "S">
<!ENTITY stopCmd.macCommandKey ".">
<!ENTITY stopButton.tooltip "Stop loading this page">
<!ENTITY goButton.label "Go">
<!ENTITY goButton.tooltip "Type a location in the address field, then click Go">