dom/xbl/builtin/mac/platformHTMLBindings.xml

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

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 <handler event="keypress" key="c" modifiers="accel" command="cmd_copy"/>
michael@0 14 <handler event="keypress" key="x" modifiers="accel" command="cmd_cut"/>
michael@0 15 <handler event="keypress" key="v" modifiers="accel" command="cmd_paste"/>
michael@0 16 <handler event="keypress" key="z" modifiers="accel" command="cmd_undo"/>
michael@0 17 <handler event="keypress" key="z" modifiers="accel,shift" command="cmd_redo"/>
michael@0 18 <handler event="keypress" key="a" modifiers="accel" command="cmd_selectAll"/>
michael@0 19 </handlers>
michael@0 20 </binding>
michael@0 21
michael@0 22 <binding id="textAreas">
michael@0 23 <handlers>
michael@0 24 <handler event="keypress" key="c" modifiers="accel" command="cmd_copy"/>
michael@0 25 <handler event="keypress" key="x" modifiers="accel" command="cmd_cut"/>
michael@0 26 <handler event="keypress" key="v" modifiers="accel" command="cmd_paste"/>
michael@0 27 <handler event="keypress" key="z" modifiers="accel" command="cmd_undo"/>
michael@0 28 <handler event="keypress" key="z" modifiers="accel,shift" command="cmd_redo"/>
michael@0 29 <handler event="keypress" key="a" modifiers="accel" command="cmd_selectAll"/>
michael@0 30 </handlers>
michael@0 31 </binding>
michael@0 32
michael@0 33 <binding id="browser">
michael@0 34 <handlers>
michael@0 35 #include ../browser-base.inc
michael@0 36 <handler event="keypress" keycode="VK_PAGE_UP" command="cmd_scrollPageUp"/>
michael@0 37 <handler event="keypress" keycode="VK_PAGE_DOWN" command="cmd_scrollPageDown"/>
michael@0 38 <handler event="keypress" keycode="VK_HOME" command="cmd_scrollTop" />
michael@0 39 <handler event="keypress" keycode="VK_END" command="cmd_scrollBottom" />
michael@0 40
michael@0 41 <handler event="keypress" keycode="VK_LEFT" modifiers="alt" command="cmd_wordPrevious" />
michael@0 42 <handler event="keypress" keycode="VK_RIGHT" modifiers="alt" command="cmd_wordNext" />
michael@0 43 <handler event="keypress" keycode="VK_LEFT" modifiers="alt,shift" command="cmd_selectWordPrevious" />
michael@0 44 <handler event="keypress" keycode="VK_RIGHT" modifiers="alt,shift" command="cmd_selectWordNext" />
michael@0 45 <handler event="keypress" keycode="VK_LEFT" modifiers="shift" command="cmd_selectCharPrevious" />
michael@0 46 <handler event="keypress" keycode="VK_RIGHT" modifiers="shift" command="cmd_selectCharNext" />
michael@0 47 <handler event="keypress" keycode="VK_UP" modifiers="shift" command="cmd_selectLinePrevious" />
michael@0 48 <handler event="keypress" keycode="VK_DOWN" modifiers="shift" command="cmd_selectLineNext" />
michael@0 49 <handler event="keypress" keycode="VK_UP" modifiers="accel" command="cmd_moveTop"/>
michael@0 50 <handler event="keypress" keycode="VK_DOWN" modifiers="accel" command="cmd_moveBottom"/>
michael@0 51 </handlers>
michael@0 52 </binding>
michael@0 53
michael@0 54 <binding id="editor">
michael@0 55 <handlers>
michael@0 56 <handler event="keypress" key=" " modifiers="shift" command="cmd_scrollPageUp" />
michael@0 57 <handler event="keypress" key=" " command="cmd_scrollPageDown" />
michael@0 58
michael@0 59 <handler event="keypress" key="z" command="cmd_undo" modifiers="accel"/>
michael@0 60 <handler event="keypress" key="z" command="cmd_redo" modifiers="accel,shift" />
michael@0 61 <handler event="keypress" key="x" command="cmd_cut" modifiers="accel"/>
michael@0 62 <handler event="keypress" key="c" command="cmd_copy" modifiers="accel"/>
michael@0 63 <handler event="keypress" key="v" command="cmd_paste" modifiers="accel"/>
michael@0 64 <handler event="keypress" key="v" command="cmd_pasteNoFormatting" modifiers="accel,shift"/>
michael@0 65 <handler event="keypress" key="a" command="cmd_selectAll" modifiers="accel"/>
michael@0 66 <handler event="keypress" key="v" command="cmd_pasteNoFormatting" modifiers="accel,alt,shift"/>
michael@0 67 </handlers>
michael@0 68 </binding>
michael@0 69
michael@0 70 </bindings>

mercurial