1<?xml version="1.0"?> 2<!-- This Source Code Form is subject to the terms of the Mozilla Public 3 - License, v. 2.0. If a copy of the MPL was not distributed with this 4 - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> 5 6 7<bindings id="htmlBindings" 8 xmlns="http://www.mozilla.org/xbl" 9 xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> 10 11 <binding id="inputFields" bindToUntrustedContent="true"> 12 <handlers> 13#include ../input-fields-base.inc 14 <handler event="keypress" key="a" modifiers="alt" 15 command="cmd_selectAll"/> 16 <handler event="keypress" key="y" modifiers="accel" 17 command="cmd_redo"/> 18 <handler event="keypress" key="z" modifiers="accel,shift" command="cmd_redo"/> 19 <handler event="keypress" key="z" modifiers="accel" command="cmd_undo"/> 20 </handlers> 21 </binding> 22 23 <binding id="textAreas" bindToUntrustedContent="true"> 24 <handlers> 25#include ../textareas-base.inc 26 <handler event="keypress" key="a" modifiers="alt" 27 command="cmd_selectAll"/> 28 <handler event="keypress" key="y" modifiers="accel" 29 command="cmd_redo"/> 30 <handler event="keypress" key="z" modifiers="accel" command="cmd_undo"/> 31 <handler event="keypress" key="z" modifiers="accel,shift" command="cmd_redo"/> 32 </handlers> 33 </binding> 34 35 <binding id="browser"> 36 <handlers> 37#include ../browser-base.inc 38 <handler event="keypress" keycode="VK_PAGE_UP" command="cmd_movePageUp"/> 39 <handler event="keypress" keycode="VK_PAGE_DOWN" command="cmd_movePageDown"/> 40 <handler event="keypress" keycode="VK_PAGE_UP" modifiers="shift" command="cmd_selectPageUp"/> 41 <handler event="keypress" keycode="VK_PAGE_DOWN" modifiers="shift" command="cmd_selectPageDown"/> 42 43 <handler event="keypress" keycode="VK_DELETE" modifiers="shift" command="cmd_cut" /> 44 <handler event="keypress" keycode="VK_DELETE" modifiers="control" command="cmd_copy" /> 45 <handler event="keypress" keycode="VK_INSERT" modifiers="control" command="cmd_copy" /> 46 <handler event="keypress" keycode="VK_HOME" command="cmd_beginLine"/> 47 <handler event="keypress" keycode="VK_END" command="cmd_endLine"/> 48 <handler event="keypress" keycode="VK_HOME" modifiers="shift" command="cmd_selectBeginLine" /> 49 <handler event="keypress" keycode="VK_END" modifiers="shift" command="cmd_selectEndLine" /> 50 <handler event="keypress" keycode="VK_HOME" modifiers="control" command="cmd_moveTop"/> 51 <handler event="keypress" keycode="VK_END" modifiers="control" command="cmd_moveBottom"/> 52 <handler event="keypress" keycode="VK_HOME" modifiers="shift,control" command="cmd_selectTop" /> 53 <handler event="keypress" keycode="VK_END" modifiers="shift,control" command="cmd_selectBottom" /> 54 55 <handler event="keypress" keycode="VK_LEFT" modifiers="shift" command="cmd_selectLeft" /> 56 <handler event="keypress" keycode="VK_RIGHT" modifiers="shift" command="cmd_selectRight" /> 57 <handler event="keypress" keycode="VK_LEFT" modifiers="control" command="cmd_moveLeft2" /> 58 <handler event="keypress" keycode="VK_RIGHT" modifiers="control" command="cmd_moveRight2" /> 59 <handler event="keypress" keycode="VK_LEFT" modifiers="control,shift" command="cmd_selectLeft2" /> 60 <handler event="keypress" keycode="VK_RIGHT" modifiers="control,shift" command="cmd_selectRight2" /> 61 62 <handler event="keypress" keycode="VK_UP" modifiers="shift" command="cmd_selectUp" /> 63 <handler event="keypress" keycode="VK_DOWN" modifiers="shift" command="cmd_selectDown" /> 64 <handler event="keypress" keycode="VK_UP" modifiers="control" command="cmd_moveUp2" /> 65 <handler event="keypress" keycode="VK_DOWN" modifiers="control" command="cmd_moveDown2" /> 66 <handler event="keypress" keycode="VK_UP" modifiers="control,shift" command="cmd_selectUp2" /> 67 <handler event="keypress" keycode="VK_DOWN" modifiers="control,shift" command="cmd_selectDown2" /> 68 69 <handler event="keypress" key="a" modifiers="alt" command="cmd_selectAll"/> 70 </handlers> 71 </binding> 72 73 <binding id="editor"> 74 <handlers> 75#include ../editor-base.inc 76 <handler event="keypress" key="z" modifiers="accel" command="cmd_undo"/> 77 <handler event="keypress" key="z" modifiers="accel,shift" command="cmd_redo"/> 78 <handler event="keypress" key="y" modifiers="accel" command="cmd_redo"/> 79 <handler event="keypress" key="a" modifiers="alt" command="cmd_selectAll"/> 80 </handlers> 81 </binding> 82</bindings> 83