<?xml version="1.0"?>
<?xul-overlay href="chrome://global/content/platformGlobalOverlay.xul"?>

<window id="inputBindings"
   xmlns:html="http://www.w3.org/TR/REC-html40"
   xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

  <keyset id="editorKeySet">
    <key id="key_home" keycode="VK_HOME" shift="false" control="false" alt="false"
        onkeypress="
            var controller =
            document.commandDispatcher.getControllerForCommand('cmd_beginLine');
            controller.doCommand('cmd_beginLine');"/>
    <key id="key_end" keycode="VK_END" shift="false" control="false" alt="false"
        onkeypress="
            var controller =
            document.commandDispatcher.getControllerForCommand('cmd_endLine');
            controller.doCommand('cmd_endLine');"/>
    <key id="key_left" keycode="VK_LEFT" shift="false" control="false" alt="false"
        onkeypress="
            var controller =
            document.commandDispatcher.getControllerForCommand('cmd_charPrevious');
            controller.doCommand('cmd_charPrevious');"/>
    <key id="key_right" keycode="VK_RIGHT" shift="false" control="false" alt="false"
        onkeypress="
            var controller =
            document.commandDispatcher.getControllerForCommand('cmd_charNext');
            controller.doCommand('cmd_charNext');"/>
    <key id="key_homeshift" keycode="VK_HOME" shift="true" control="false" alt="false"
        onkeypress="
            var controller =
            document.commandDispatcher.getControllerForCommand('cmd_selectBeginLine');
            controller.doCommand('cmd_selectBeginLine');"/>
    <key id="key_endshift" keycode="VK_END" shift="true" control="false" alt="false"
        onkeypress="
            var controller =
            document.commandDispatcher.getControllerForCommand('cmd_selectEndLine');
            controller.doCommand('cmd_selectEndLine');"/>
    <key id="key_leftshift" keycode="VK_LEFT" shift="true" control="false" alt="false"
        onkeypress="
            var controller =
            document.commandDispatcher.getControllerForCommand('cmd_selectCharPrevious');
            controller.doCommand('cmd_selectCharPrevious');"/>
    <key id="key_rightshift" keycode="VK_RIGHT" shift="true" control="false" alt="false"
        onkeypress="
            var controller =
            document.commandDispatcher.getControllerForCommand('cmd_selectCharNext');
            controller.doCommand('cmd_selectCharNext');"/>
    <key id="key_leftcontrol" keycode="VK_LEFT" shift="false" control="true" alt="false"
        onkeypress="
            var controller =
            document.commandDispatcher.getControllerForCommand('cmd_wordPrevious');
            controller.doCommand('cmd_wordPrevious');"/>
    <key id="key_rightcontrol" keycode="VK_RIGHT" shift="false" control="true" alt="false"
        onkeypress="
            var controller =
            document.commandDispatcher.getControllerForCommand('cmd_wordNext');
            controller.doCommand('cmd_wordNext');"/>
    <key id="key_leftshiftcontrol" keycode="VK_LEFT" shift="true" control="true" alt="false"
        onkeypress="
            var controller =
            document.commandDispatcher.getControllerForCommand('cmd_selectWordPrevious');
            controller.doCommand('cmd_wordPrevious');"/>
    <key id="key_rightshiftcontrol" keycode="VK_RIGHT" shift="true" control="true" alt="false"
        onkeypress="
            var controller =
            document.commandDispatcher.getControllerForCommand('cmd_selectWordNext');
            controller.doCommand('cmd_wordNext');"/>
    <key id="key_pageup" keycode="VK_PAGE_UP" shift="false" control="false" alt="false"
        onkeypress="
            var controller =
            document.commandDispatcher.getControllerForCommand('cmd_scrollPageUp');
            controller.doCommand('cmd_scrollPageUp');"/>
    <key id="key_pagedown" keycode="VK_PAGE_DOWN" shift="false" control="false" alt="false"
        onkeypress="
            var controller =
            document.commandDispatcher.getControllerForCommand('cmd_scrollPageDown');
            controller.doCommand('cmd_scrollPageDown');"/>
    <key id="key_undo" key="z" xulkey="true" shift="false"
        onkeypress="
            var controller =
            document.commandDispatcher.getControllerForCommand('cmd_undo');
            controller.doCommand('cmd_undo');"/>
    <key id="key_redo" key="y" xulkey="true" shift="false"
        onkeypress="
            var controller =
            document.commandDispatcher.getControllerForCommand('cmd_redo');
            controller.doCommand('cmd_redo');"/>
	<key id="key_space" key=" " cancel="true"/>
  </keyset>
</window>
