dom/xbl/builtin/android/platformHTMLBindings.xml

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 <?xml version="1.0"?>
michael@0 2 <!-- This Source Code Form is subject to the terms of the Mozilla Public
michael@0 3 - License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 4 - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
michael@0 5
michael@0 6
michael@0 7 <bindings id="htmlBindings"
michael@0 8 xmlns="http://www.mozilla.org/xbl"
michael@0 9 xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
michael@0 10
michael@0 11 <binding id="inputFields">
michael@0 12 <handlers>
michael@0 13 #include ../input-fields-base.inc
michael@0 14 <handler event="keypress" key="a" modifiers="accel" command="cmd_selectAll"/>
michael@0 15
michael@0 16 <handler event="keypress" keycode="VK_LEFT" modifiers="control" command="cmd_wordPrevious"/>
michael@0 17 <handler event="keypress" keycode="VK_RIGHT" modifiers="control" command="cmd_wordNext"/>
michael@0 18 <handler event="keypress" keycode="VK_LEFT" modifiers="shift,control" command="cmd_selectWordPrevious"/>
michael@0 19 <handler event="keypress" keycode="VK_RIGHT" modifiers="shift,control" command="cmd_selectWordNext"/>
michael@0 20 <handler event="keypress" keycode="VK_LEFT" modifiers="alt" command="cmd_beginLine"/>
michael@0 21 <handler event="keypress" keycode="VK_RIGHT" modifiers="alt" command="cmd_endLine"/>
michael@0 22 <handler event="keypress" keycode="VK_LEFT" modifiers="shift,alt" command="cmd_selectBeginLine"/>
michael@0 23 <handler event="keypress" keycode="VK_RIGHT" modifiers="shift,alt" command="cmd_selectEndLine"/>
michael@0 24
michael@0 25 <handler event="keypress" keycode="VK_HOME" command="cmd_beginLine"/>
michael@0 26 <handler event="keypress" keycode="VK_END" command="cmd_endLine"/>
michael@0 27 <handler event="keypress" keycode="VK_HOME" modifiers="shift" command="cmd_selectBeginLine" />
michael@0 28 <handler event="keypress" keycode="VK_END" modifiers="shift" command="cmd_selectEndLine" />
michael@0 29
michael@0 30 <handler event="keypress" keycode="VK_BACK" modifiers="shift" command="cmd_deleteCharForward"/>
michael@0 31 <handler event="keypress" keycode="VK_BACK" modifiers="shift,alt" command="cmd_deleteToEndOfLine"/>
michael@0 32 <handler event="keypress" keycode="VK_BACK" modifiers="alt" command="cmd_deleteToBeginningOfLine"/>
michael@0 33 <handler event="keypress" keycode="VK_DELETE" modifiers="alt" command="cmd_deleteToEndOfLine"/>
michael@0 34 </handlers>
michael@0 35 </binding>
michael@0 36
michael@0 37 <binding id="textAreas">
michael@0 38 <handlers>
michael@0 39 #include ../textareas-base.inc
michael@0 40 <handler event="keypress" key="a" modifiers="accel" command="cmd_selectAll"/>
michael@0 41
michael@0 42 <handler event="keypress" keycode="VK_LEFT" modifiers="control" command="cmd_wordPrevious"/>
michael@0 43 <handler event="keypress" keycode="VK_RIGHT" modifiers="control" command="cmd_wordNext"/>
michael@0 44 <handler event="keypress" keycode="VK_LEFT" modifiers="shift,control" command="cmd_selectWordPrevious"/>
michael@0 45 <handler event="keypress" keycode="VK_RIGHT" modifiers="shift,control" command="cmd_selectWordNext"/>
michael@0 46 <handler event="keypress" keycode="VK_LEFT" modifiers="alt" command="cmd_beginLine"/>
michael@0 47 <handler event="keypress" keycode="VK_RIGHT" modifiers="alt" command="cmd_endLine"/>
michael@0 48 <handler event="keypress" keycode="VK_LEFT" modifiers="shift,alt" command="cmd_selectBeginLine"/>
michael@0 49 <handler event="keypress" keycode="VK_RIGHT" modifiers="shift,alt" command="cmd_selectEndLine"/>
michael@0 50
michael@0 51 <handler event="keypress" keycode="VK_UP" modifiers="alt" command="cmd_moveTop"/>
michael@0 52 <handler event="keypress" keycode="VK_DOWN" modifiers="alt" command="cmd_moveBottom"/>
michael@0 53 <handler event="keypress" keycode="VK_UP" modifiers="shift,alt" command="cmd_selectTop"/>
michael@0 54 <handler event="keypress" keycode="VK_DOWN" modifiers="shift,alt" command="cmd_selectBottom"/>
michael@0 55
michael@0 56 <handler event="keypress" keycode="VK_PAGE_UP" command="cmd_movePageUp"/>
michael@0 57 <handler event="keypress" keycode="VK_PAGE_DOWN" command="cmd_movePageDown"/>
michael@0 58 <handler event="keypress" keycode="VK_PAGE_UP" modifiers="shift" command="cmd_selectPageUp"/>
michael@0 59 <handler event="keypress" keycode="VK_PAGE_DOWN" modifiers="shift" command="cmd_selectPageDown"/>
michael@0 60 <handler event="keypress" keycode="VK_PAGE_UP" modifiers="alt" command="cmd_moveTop"/>
michael@0 61 <handler event="keypress" keycode="VK_PAGE_DOWN" modifiers="alt" command="cmd_moveBottom"/>
michael@0 62 <handler event="keypress" keycode="VK_PAGE_UP" modifiers="shift,alt" command="cmd_selectTop"/>
michael@0 63 <handler event="keypress" keycode="VK_PAGE_DOWN" modifiers="shift,alt" command="cmd_selectBottom"/>
michael@0 64
michael@0 65 <handler event="keypress" keycode="VK_HOME" command="cmd_beginLine"/>
michael@0 66 <handler event="keypress" keycode="VK_END" command="cmd_endLine"/>
michael@0 67 <handler event="keypress" keycode="VK_HOME" modifiers="shift" command="cmd_selectBeginLine" />
michael@0 68 <handler event="keypress" keycode="VK_END" modifiers="shift" command="cmd_selectEndLine" />
michael@0 69 <handler event="keypress" keycode="VK_HOME" modifiers="control" command="cmd_moveTop"/>
michael@0 70 <handler event="keypress" keycode="VK_END" modifiers="control" command="cmd_moveBottom"/>
michael@0 71 <handler event="keypress" keycode="VK_HOME" modifiers="shift,control" command="cmd_selectTop" />
michael@0 72 <handler event="keypress" keycode="VK_END" modifiers="shift,control" command="cmd_selectBottom" />
michael@0 73
michael@0 74 <handler event="keypress" keycode="VK_BACK" modifiers="shift" command="cmd_deleteCharForward"/>
michael@0 75 <handler event="keypress" keycode="VK_BACK" modifiers="shift,alt" command="cmd_deleteToEndOfLine"/>
michael@0 76 <handler event="keypress" keycode="VK_BACK" modifiers="alt" command="cmd_deleteToBeginningOfLine"/>
michael@0 77 <handler event="keypress" keycode="VK_DELETE" modifiers="alt" command="cmd_deleteToEndOfLine"/>
michael@0 78 </handlers>
michael@0 79 </binding>
michael@0 80
michael@0 81 <binding id="browser">
michael@0 82 <handlers>
michael@0 83 #include ../browser-base.inc
michael@0 84 <handler event="keypress" keycode="VK_LEFT" modifiers="shift" command="cmd_selectCharPrevious" />
michael@0 85 <handler event="keypress" keycode="VK_RIGHT" modifiers="shift" command="cmd_selectCharNext" />
michael@0 86 <handler event="keypress" keycode="VK_LEFT" modifiers="control" command="cmd_wordPrevious" />
michael@0 87 <handler event="keypress" keycode="VK_RIGHT" modifiers="control" command="cmd_wordNext" />
michael@0 88 <handler event="keypress" keycode="VK_LEFT" modifiers="control,shift" command="cmd_selectWordPrevious" />
michael@0 89 <handler event="keypress" keycode="VK_RIGHT" modifiers="control,shift" command="cmd_selectWordNext" />
michael@0 90 <handler event="keypress" keycode="VK_LEFT" modifiers="alt" command="cmd_beginLine"/>
michael@0 91 <handler event="keypress" keycode="VK_RIGHT" modifiers="alt" command="cmd_endLine"/>
michael@0 92 <handler event="keypress" keycode="VK_LEFT" modifiers="shift,alt" command="cmd_selectBeginLine"/>
michael@0 93 <handler event="keypress" keycode="VK_RIGHT" modifiers="shift,alt" command="cmd_selectEndLine"/>
michael@0 94
michael@0 95 <handler event="keypress" keycode="VK_UP" modifiers="shift" command="cmd_selectLinePrevious" />
michael@0 96 <handler event="keypress" keycode="VK_DOWN" modifiers="shift" command="cmd_selectLineNext" />
michael@0 97 <handler event="keypress" keycode="VK_UP" modifiers="alt" command="cmd_moveTop"/>
michael@0 98 <handler event="keypress" keycode="VK_DOWN" modifiers="alt" command="cmd_moveBottom"/>
michael@0 99 <handler event="keypress" keycode="VK_UP" modifiers="shift,alt" command="cmd_selectTop"/>
michael@0 100 <handler event="keypress" keycode="VK_DOWN" modifiers="shift,alt" command="cmd_selectBottom"/>
michael@0 101
michael@0 102 <handler event="keypress" keycode="VK_PAGE_UP" command="cmd_movePageUp"/>
michael@0 103 <handler event="keypress" keycode="VK_PAGE_DOWN" command="cmd_movePageDown"/>
michael@0 104 <handler event="keypress" keycode="VK_PAGE_UP" modifiers="shift" command="cmd_selectPageUp"/>
michael@0 105 <handler event="keypress" keycode="VK_PAGE_DOWN" modifiers="shift" command="cmd_selectPageDown"/>
michael@0 106 <handler event="keypress" keycode="VK_PAGE_UP" modifiers="alt" command="cmd_moveTop"/>
michael@0 107 <handler event="keypress" keycode="VK_PAGE_DOWN" modifiers="alt" command="cmd_moveBottom"/>
michael@0 108 <handler event="keypress" keycode="VK_PAGE_UP" modifiers="shift,alt" command="cmd_selectTop"/>
michael@0 109 <handler event="keypress" keycode="VK_PAGE_DOWN" modifiers="shift,alt" command="cmd_selectBottom"/>
michael@0 110
michael@0 111 <handler event="keypress" keycode="VK_HOME" command="cmd_beginLine"/>
michael@0 112 <handler event="keypress" keycode="VK_END" command="cmd_endLine"/>
michael@0 113 <handler event="keypress" keycode="VK_HOME" modifiers="shift" command="cmd_selectBeginLine" />
michael@0 114 <handler event="keypress" keycode="VK_END" modifiers="shift" command="cmd_selectEndLine" />
michael@0 115 <handler event="keypress" keycode="VK_HOME" modifiers="control" command="cmd_moveTop"/>
michael@0 116 <handler event="keypress" keycode="VK_END" modifiers="control" command="cmd_moveBottom"/>
michael@0 117 <handler event="keypress" keycode="VK_HOME" modifiers="shift,control" command="cmd_selectTop" />
michael@0 118 <handler event="keypress" keycode="VK_END" modifiers="shift,control" command="cmd_selectBottom" />
michael@0 119
michael@0 120 <handler event="keypress" keycode="VK_BACK" modifiers="shift" command="cmd_deleteCharForward"/>
michael@0 121 <handler event="keypress" keycode="VK_BACK" modifiers="shift,alt" command="cmd_deleteToEndOfLine"/>
michael@0 122 <handler event="keypress" keycode="VK_BACK" modifiers="alt" command="cmd_deleteToBeginningOfLine"/>
michael@0 123 <handler event="keypress" keycode="VK_DELETE" modifiers="alt" command="cmd_deleteToEndOfLine"/>
michael@0 124 </handlers>
michael@0 125 </binding>
michael@0 126
michael@0 127 <binding id="editor">
michael@0 128 <handlers>
michael@0 129 #include ../editor-base.inc
michael@0 130 <handler event="keypress" key="a" modifiers="accel" command="cmd_selectAll"/>
michael@0 131
michael@0 132 <handler event="keypress" keycode="VK_LEFT" modifiers="control" command="cmd_wordPrevious"/>
michael@0 133 <handler event="keypress" keycode="VK_RIGHT" modifiers="control" command="cmd_wordNext"/>
michael@0 134 <handler event="keypress" keycode="VK_LEFT" modifiers="shift,control" command="cmd_selectWordPrevious"/>
michael@0 135 <handler event="keypress" keycode="VK_RIGHT" modifiers="shift,control" command="cmd_selectWordNext"/>
michael@0 136 <handler event="keypress" keycode="VK_LEFT" modifiers="alt" command="cmd_beginLine"/>
michael@0 137 <handler event="keypress" keycode="VK_RIGHT" modifiers="alt" command="cmd_endLine"/>
michael@0 138 <handler event="keypress" keycode="VK_LEFT" modifiers="shift,alt" command="cmd_selectBeginLine"/>
michael@0 139 <handler event="keypress" keycode="VK_RIGHT" modifiers="shift,alt" command="cmd_selectEndLine"/>
michael@0 140
michael@0 141 <handler event="keypress" keycode="VK_UP" modifiers="alt" command="cmd_moveTop"/>
michael@0 142 <handler event="keypress" keycode="VK_DOWN" modifiers="alt" command="cmd_moveBottom"/>
michael@0 143 <handler event="keypress" keycode="VK_UP" modifiers="shift,alt" command="cmd_selectTop"/>
michael@0 144 <handler event="keypress" keycode="VK_DOWN" modifiers="shift,alt" command="cmd_selectBottom"/>
michael@0 145
michael@0 146 <handler event="keypress" keycode="VK_PAGE_UP" command="cmd_movePageUp"/>
michael@0 147 <handler event="keypress" keycode="VK_PAGE_DOWN" command="cmd_movePageDown"/>
michael@0 148 <handler event="keypress" keycode="VK_PAGE_UP" modifiers="shift" command="cmd_selectPageUp"/>
michael@0 149 <handler event="keypress" keycode="VK_PAGE_DOWN" modifiers="shift" command="cmd_selectPageDown"/>
michael@0 150 <handler event="keypress" keycode="VK_PAGE_UP" modifiers="alt" command="cmd_moveTop"/>
michael@0 151 <handler event="keypress" keycode="VK_PAGE_DOWN" modifiers="alt" command="cmd_moveBottom"/>
michael@0 152 <handler event="keypress" keycode="VK_PAGE_UP" modifiers="shift,alt" command="cmd_selectTop"/>
michael@0 153 <handler event="keypress" keycode="VK_PAGE_DOWN" modifiers="shift,alt" command="cmd_selectBottom"/>
michael@0 154
michael@0 155 <handler event="keypress" keycode="VK_HOME" command="cmd_beginLine"/>
michael@0 156 <handler event="keypress" keycode="VK_END" command="cmd_endLine"/>
michael@0 157 <handler event="keypress" keycode="VK_HOME" modifiers="shift" command="cmd_selectBeginLine" />
michael@0 158 <handler event="keypress" keycode="VK_END" modifiers="shift" command="cmd_selectEndLine" />
michael@0 159 <handler event="keypress" keycode="VK_HOME" modifiers="control" command="cmd_moveTop"/>
michael@0 160 <handler event="keypress" keycode="VK_END" modifiers="control" command="cmd_moveBottom"/>
michael@0 161 <handler event="keypress" keycode="VK_HOME" modifiers="shift,control" command="cmd_selectTop" />
michael@0 162 <handler event="keypress" keycode="VK_END" modifiers="shift,control" command="cmd_selectBottom" />
michael@0 163
michael@0 164 <handler event="keypress" keycode="VK_BACK" modifiers="shift" command="cmd_deleteCharForward"/>
michael@0 165 <handler event="keypress" keycode="VK_BACK" modifiers="shift,alt" command="cmd_deleteToEndOfLine"/>
michael@0 166 <handler event="keypress" keycode="VK_BACK" modifiers="alt" command="cmd_deleteToBeginningOfLine"/>
michael@0 167 <handler event="keypress" keycode="VK_DELETE" modifiers="alt" command="cmd_deleteToEndOfLine"/>
michael@0 168 </handlers>
michael@0 169 </binding>
michael@0 170 </bindings>

mercurial