Bug 79397 - Want F5 to view/reload as per browser. f=stefanh r=Mnyromyr sr=Neil
authorJens Hatlak <jh@junetz.de>
Tue, 09 Nov 2010 00:08:12 +0100
changeset 6663 6da511123e92d75c98350f88a404b13ddb4a4b4c
parent 6662 c60c611cea9ac95320f2062b873ad076da758251
child 6664 1634e5c4c0bc16de48d8f70c396cc58b9f4f5f9e
push idunknown
push userunknown
push dateunknown
reviewersMnyromyr, Neil
bugs79397
Bug 79397 - Want F5 to view/reload as per browser. f=stefanh r=Mnyromyr sr=Neil
suite/locales/en-US/chrome/common/help/shortcuts_mailnews.xhtml
suite/mailnews/mailWindowOverlay.xul
suite/mailnews/unix/platformMailnewsOverlay.xul
suite/mailnews/win/platformMailnewsOverlay.xul
--- a/suite/locales/en-US/chrome/common/help/shortcuts_mailnews.xhtml
+++ b/suite/locales/en-US/chrome/common/help/shortcuts_mailnews.xhtml
@@ -40,16 +40,22 @@
     <th>Command</th>
     <th>Windows</th>
     <th>Mac OS</th>
     <th>Linux or Unix</th>
   </tr>
 </thead>
 <tbody class="tbody-default">
   <tr>
+    <td>Reload</td>
+    <td>F5</td>
+    <td/>
+    <td>F5</td>
+  </tr>
+  <tr>
     <td>Move to Next Mail Pane (Folder, QuickSearch, Thread,
     Message Panes)</td>
     <td>F6</td>
     <td>F6</td>
     <td>F6</td>
   </tr>
   <tr>
     <td>Toggle Message Pane Visibility</td>
--- a/suite/mailnews/mailWindowOverlay.xul
+++ b/suite/mailnews/mailWindowOverlay.xul
@@ -405,16 +405,17 @@
   <key id="key_findAgain" key="&findAgainCmd.key;"   oncommand="goDoCommand('cmd_findAgain')" modifiers="accel"/>
   <key id="key_findPrev"  key="&findPrevCmd.key;"    oncommand="goDoCommand('cmd_findPrev')"  modifiers="accel, shift"/>
   <key keycode="&findAgainCmd.key2;"   oncommand="goDoCommand('cmd_findAgain')"/>
   <key keycode="&findPrevCmd.key2;"    oncommand="goDoCommand('cmd_findPrev')"  modifiers="shift"/>
   <key id="key_findTypeText"/>
   <key id="key_findTypeLinks"/>
   <key id="key_stop" keycode="VK_ESCAPE" command="cmd_stop"/>
   <keyset id="viewZoomKeys"/>
+  <key id="key_reload"/>
 
   <!-- Tab/F6 Keys -->
   <key keycode="VK_TAB" oncommand="SwitchPaneFocus(event);" modifiers="control,shift"/>
   <key keycode="VK_TAB" oncommand="SwitchPaneFocus(event);" modifiers="control"/>
   <key keycode="VK_F6" oncommand="SwitchPaneFocus(event);" modifiers="control,shift"/>
   <key keycode="VK_F6" oncommand="SwitchPaneFocus(event);" modifiers="control"/>
   <key keycode="VK_F6" oncommand="SwitchPaneFocus(event);" modifiers="shift"/>
   <key keycode="VK_F6" oncommand="SwitchPaneFocus(event);"/>
@@ -1374,16 +1375,17 @@
       <menuitem id="stopMenuitem"
                 label="&stopCmd.label;"
                 accesskey="&stopCmd.accesskey;"
                 key="key_stop"
                 disabled="true"
                 command="cmd_stop"/>
       <menuitem id="menu_Stop"
                 label="&reloadCmd.label;"
+                key="key_reload"
                 accesskey="&reloadCmd.accesskey;"
                 command="cmd_reload"/>
       <menuseparator id="viewAfterStopSeparator"/>
       <!-- overlayed from viewZoomOverlay.xul -->
       <menu id="menu_zoom"/>
       <menu id="mailviewCharsetMenu" />
       <menuseparator id="viewAfterCharsetSeparator"/>
       <menuitem id="pageSourceMenuItem" label="&pageSourceCmd.label;" key="key_viewPageSource" accesskey="&pageSourceCmd.accesskey;" command="cmd_viewPageSource"/>
--- a/suite/mailnews/unix/platformMailnewsOverlay.xul
+++ b/suite/mailnews/unix/platformMailnewsOverlay.xul
@@ -4,14 +4,17 @@
 <!DOCTYPE overlay SYSTEM "chrome://messenger/locale/messenger.dtd">
 
 <overlay id="platformMailnewsOverlay"
          xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
     <!-- Delete Key -->
     <key id="key_shiftDelete" keycode="VK_DELETE" modifiers="shift" command="cmd_shiftDelete"/>
 
+    <!-- Reload Key -->
+    <key id="key_reload" keycode="VK_F5" oncommand="ReloadMessage();"/>
+
     <!-- Find -->
     <keyset id="mailKeys">
         <key keycode="VK_F19" oncommand="goDoCommand('cmd_find')"/>
     </keyset>
 
 </overlay>
--- a/suite/mailnews/win/platformMailnewsOverlay.xul
+++ b/suite/mailnews/win/platformMailnewsOverlay.xul
@@ -2,9 +2,12 @@
 <!-- win version of platformMailnewsOverlay.xul -->
 
 <overlay id="platformMailnewsOverlay"
          xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
     <!-- Delete Key -->
     <key id="key_shiftDelete" keycode="VK_DELETE" modifiers="shift" command="cmd_shiftDelete"/>
 
+    <!-- Reload Key -->
+    <key id="key_reload" keycode="VK_F5" oncommand="ReloadMessage();"/>
+
 </overlay>