suite/browser/unix/platformNavigationBindings.xul
author Jens Hatlak <jh@junetz.de>
Wed, 03 Nov 2010 13:12:48 +0100
changeset 6642 656d8167f3a277aa05178f17f7a0740d57912984
parent 6326 ba68b04c0ab1e645cb60366dc17587897ab851c2
child 6684 f8d3569a79a501485291cd31e1de26c27838e25c
permissions -rw-r--r--
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.

<?xml version="1.0"?>

<!DOCTYPE overlay SYSTEM "chrome://navigator-platform/locale/platformNavigationBindings.dtd">

<overlay id="platformNavigationBindings"
         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

  <keyset id="navigationKeys">
    <!-- proper arrow key navigation, 4.xP -->
    <key id="goBackKb" keycode="&goBackCmd.keyCode;" command="Browser:Back" modifiers="alt"/>
    <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>