Bug 509954 - Make F5 reload on other platforms than Windows. r+sr=Neil
authorJens Hatlak <jh@junetz.de>
Wed, 03 Nov 2010 13:12:48 +0100
changeset 6642 656d8167f3a277aa05178f17f7a0740d57912984
parent 6641 489f2b3f5f664512753487e90164f42f32b13152
child 6643 a1d081a1b45a03b43369ba7c7c3cf0d062e01dc9
push idunknown
push userunknown
push dateunknown
bugs509954
Bug 509954 - Make F5 reload on other platforms than Windows. r+sr=Neil Enable it for Linux/Unix only, since we don't want it on Mac.
suite/browser/unix/platformNavigationBindings.xul
--- a/suite/browser/unix/platformNavigationBindings.xul
+++ b/suite/browser/unix/platformNavigationBindings.xul
@@ -11,21 +11,31 @@
     <key id="goForwardKb" keycode="&goForwardCmd.keyCode;" command="Browser:Forward" modifiers="alt"/>
 
     <!-- Some people apparently use this combination too on Unix...
          we live and learn.  -->
     <key key="&goBackCmd.commandKey;" command="Browser:Back" modifiers="accel"/>
     <key key="&goForwardCmd.commandKey;" command="Browser:Forward" modifiers="accel"/>
     <key id="key_stop" keycode="VK_ESCAPE" oncommand="BrowserStop();"/>
 
+    <!-- Supporting IE 'refresh' shortcut key -->
+    <key keycode="VK_F5" oncommand="BrowserReload();"/>
+    <key keycode="VK_F5" modifiers="control" oncommand="BrowserReloadSkipCache();"/>
+
     <!-- Specific keybinding for Sun keyboard -->
     <key keycode="&findOnCmd.commandkey2;" command="Browser:Find"/>
 
     <key id="goHome" keycode="VK_HOME" oncommand="BrowserHome();" modifiers="alt"/>
     <key id="key_fullScreen" keycode="VK_F11" command="View:FullScreen"/>
     <key id="key_newTabWithTargetBg" keycode="VK_INSERT" command="cmd_newTabWithTarget"/>
     <key id="key_newTabWithTargetFg" keycode="VK_INSERT" modifiers="alt" command="cmd_newTabWithTarget"/>
   </keyset>
 
+  <keyset id="viewSourceKeys">
+    <!-- Supporting IE 'refresh' shortcut key in view source -->
+    <key keycode="VK_F5" oncommand="BrowserReload();"/>
+    <key keycode="VK_F5" modifiers="control" oncommand="BrowserReloadSkipCache();"/>
+  </keyset>
+
   <menuitem id="menuitem_fullScreen" hidden="false"/>
 </overlay>