summaryrefslogtreecommitdiffstats
path: root/dom/xbl/builtin/unix/platformHTMLBindings.xml
blob: 75645f1f6a0586f550dff7802721179a3703140b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<?xml version="1.0"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->


<bindings id="htmlBindings"
   xmlns="http://www.mozilla.org/xbl"
   xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
  <binding id="inputFields" bindToUntrustedContent="true">
    <handlers>
#include ../input-fields-base.inc
    <handler event="keypress" key="a" modifiers="alt"
        command="cmd_selectAll"/>
    <handler event="keypress" key="y" modifiers="accel"
        command="cmd_redo"/>
    <handler event="keypress" key="z" modifiers="accel,shift" command="cmd_redo"/>
    <handler event="keypress" key="z" modifiers="accel" command="cmd_undo"/>
    </handlers>
  </binding>

  <binding id="textAreas" bindToUntrustedContent="true">
    <handlers>
#include ../textareas-base.inc
    <handler event="keypress" key="a" modifiers="alt"
        command="cmd_selectAll"/>
    <handler event="keypress" key="y" modifiers="accel"
        command="cmd_redo"/>
    <handler event="keypress" key="z" modifiers="accel" command="cmd_undo"/>
    <handler event="keypress" key="z" modifiers="accel,shift" command="cmd_redo"/>
    </handlers>
  </binding>

  <binding id="browser">
    <handlers>
#include ../browser-base.inc
      <handler event="keypress" keycode="VK_PAGE_UP" command="cmd_movePageUp"/>
      <handler event="keypress" keycode="VK_PAGE_DOWN" command="cmd_movePageDown"/>
      <handler event="keypress" keycode="VK_PAGE_UP" modifiers="shift" command="cmd_selectPageUp"/>
      <handler event="keypress" keycode="VK_PAGE_DOWN" modifiers="shift" command="cmd_selectPageDown"/>

      <handler event="keypress" keycode="VK_DELETE" modifiers="shift" command="cmd_cut" /> 
      <handler event="keypress" keycode="VK_DELETE" modifiers="control" command="cmd_copy" /> 
      <handler event="keypress" keycode="VK_INSERT" modifiers="control" command="cmd_copy" /> 
      <handler event="keypress" keycode="VK_HOME" command="cmd_beginLine"/>
      <handler event="keypress" keycode="VK_END" command="cmd_endLine"/>
      <handler event="keypress" keycode="VK_HOME" modifiers="shift" command="cmd_selectBeginLine" />
      <handler event="keypress" keycode="VK_END" modifiers="shift" command="cmd_selectEndLine" />
      <handler event="keypress" keycode="VK_HOME" modifiers="control" command="cmd_moveTop"/>
      <handler event="keypress" keycode="VK_END" modifiers="control" command="cmd_moveBottom"/>
      <handler event="keypress" keycode="VK_HOME" modifiers="shift,control" command="cmd_selectTop" /> 
      <handler event="keypress" keycode="VK_END" modifiers="shift,control" command="cmd_selectBottom" /> 

      <handler event="keypress" keycode="VK_LEFT" modifiers="shift" command="cmd_selectLeft" />
      <handler event="keypress" keycode="VK_RIGHT" modifiers="shift" command="cmd_selectRight" />
      <handler event="keypress" keycode="VK_LEFT" modifiers="control" command="cmd_moveLeft2" />
      <handler event="keypress" keycode="VK_RIGHT" modifiers="control" command="cmd_moveRight2" />
      <handler event="keypress" keycode="VK_LEFT" modifiers="control,shift" command="cmd_selectLeft2" />
      <handler event="keypress" keycode="VK_RIGHT" modifiers="control,shift" command="cmd_selectRight2" />

      <handler event="keypress" keycode="VK_UP" modifiers="shift" command="cmd_selectUp" />
      <handler event="keypress" keycode="VK_DOWN" modifiers="shift" command="cmd_selectDown" />
      <handler event="keypress" keycode="VK_UP" modifiers="control" command="cmd_moveUp2" />
      <handler event="keypress" keycode="VK_DOWN" modifiers="control" command="cmd_moveDown2" />
      <handler event="keypress" keycode="VK_UP" modifiers="control,shift" command="cmd_selectUp2" />
      <handler event="keypress" keycode="VK_DOWN" modifiers="control,shift" command="cmd_selectDown2" />

      <handler event="keypress" key="a" modifiers="alt" command="cmd_selectAll"/>
    </handlers>
  </binding>

  <binding id="editor">
    <handlers>
#include ../editor-base.inc
      <handler event="keypress" key="z" modifiers="accel" command="cmd_undo"/>
      <handler event="keypress" key="z" modifiers="accel,shift" command="cmd_redo"/>
      <handler event="keypress" key="y" modifiers="accel"   command="cmd_redo"/>
      <handler event="keypress" key="a" modifiers="alt" command="cmd_selectAll"/>
    </handlers>
  </binding>
</bindings>