suite/browser/unix/platformNavigationBindings.xul
author stefanh@inbox.com
Thu, 11 Nov 2010 19:00:35 +0100
changeset 6684 f8d3569a79a501485291cd31e1de26c27838e25c
parent 6642 656d8167f3a277aa05178f17f7a0740d57912984
child 7432 5837fa948038729b6494171a4fc33af19b9162d5
permissions -rw-r--r--
Bug 606297 - Enable full screen mode on Mac. r=Mnyromyr, sr=Neil.

<?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>

</overlay>