summaryrefslogtreecommitdiffstats
path: root/dom/xbl/builtin/win
diff options
context:
space:
mode:
Diffstat (limited to 'dom/xbl/builtin/win')
-rw-r--r--dom/xbl/builtin/win/jar.mn6
-rw-r--r--dom/xbl/builtin/win/moz.build7
-rw-r--r--dom/xbl/builtin/win/platformHTMLBindings.xml164
3 files changed, 177 insertions, 0 deletions
diff --git a/dom/xbl/builtin/win/jar.mn b/dom/xbl/builtin/win/jar.mn
new file mode 100644
index 000000000..9f05c2dd6
--- /dev/null
+++ b/dom/xbl/builtin/win/jar.mn
@@ -0,0 +1,6 @@
+# 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/.
+
+toolkit.jar:
+* content/global/platformHTMLBindings.xml (platformHTMLBindings.xml)
diff --git a/dom/xbl/builtin/win/moz.build b/dom/xbl/builtin/win/moz.build
new file mode 100644
index 000000000..eb4454d28
--- /dev/null
+++ b/dom/xbl/builtin/win/moz.build
@@ -0,0 +1,7 @@
+# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
+# vim: set filetype=python:
+# 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/.
+
+JAR_MANIFESTS += ['jar.mn'] \ No newline at end of file
diff --git a/dom/xbl/builtin/win/platformHTMLBindings.xml b/dom/xbl/builtin/win/platformHTMLBindings.xml
new file mode 100644
index 000000000..1612138e1
--- /dev/null
+++ b/dom/xbl/builtin/win/platformHTMLBindings.xml
@@ -0,0 +1,164 @@
+<?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" 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="shift,control" command="cmd_selectTop"/>
+ <handler event="keypress" keycode="VK_END" modifiers="shift,control" command="cmd_selectBottom"/>
+ <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_LEFT" modifiers="control" command="cmd_moveLeft2"/>
+ <handler event="keypress" keycode="VK_RIGHT" modifiers="control" command="cmd_moveRight2"/>
+ <handler event="keypress" keycode="VK_LEFT" modifiers="shift,control" command="cmd_selectLeft2"/>
+ <handler event="keypress" keycode="VK_RIGHT" modifiers="shift,control" command="cmd_selectRight2"/>
+
+ <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="shift,control" command="cmd_selectUp2"/>
+ <handler event="keypress" keycode="VK_DOWN" modifiers="shift,control" command="cmd_selectDown2"/>
+
+ <handler event="keypress" keycode="VK_DELETE" modifiers="shift" command="cmd_cutOrDelete"/>
+ <handler event="keypress" keycode="VK_DELETE" modifiers="control" command="cmd_deleteWordForward"/>
+ <handler event="keypress" keycode="VK_INSERT" modifiers="control" command="cmd_copy"/>
+ <handler event="keypress" keycode="VK_INSERT" modifiers="shift" command="cmd_paste"/>
+
+ <handler event="keypress" keycode="VK_BACK" modifiers="alt" command="cmd_undo"/>
+ <handler event="keypress" keycode="VK_BACK" modifiers="alt,shift" command="cmd_redo"/>
+ <handler event="keypress" keycode="VK_BACK" modifiers="control" command="cmd_deleteWordBackward"/>
+
+ <handler event="keypress" key="a" modifiers="accel" command="cmd_selectAll"/>
+ <handler event="keypress" key="y" modifiers="accel" command="cmd_redo"/>
+ </handlers>
+ </binding>
+
+ <binding id="textAreas" bindToUntrustedContent="true">
+ <handlers>
+#include ../textareas-base.inc
+ <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="shift,control" command="cmd_selectTop"/>
+ <handler event="keypress" keycode="VK_END" modifiers="shift,control" command="cmd_selectBottom"/>
+ <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_LEFT" modifiers="control" command="cmd_moveLeft2"/>
+ <handler event="keypress" keycode="VK_RIGHT" modifiers="control" command="cmd_moveRight2"/>
+ <handler event="keypress" keycode="VK_LEFT" modifiers="shift,control" command="cmd_selectLeft2"/>
+ <handler event="keypress" keycode="VK_RIGHT" modifiers="shift,control" command="cmd_selectRight2"/>
+
+ <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="shift,control" command="cmd_selectUp2"/>
+ <handler event="keypress" keycode="VK_DOWN" modifiers="shift,control" command="cmd_selectDown2"/>
+
+ <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_cutOrDelete"/>
+ <handler event="keypress" keycode="VK_DELETE" modifiers="control" command="cmd_deleteWordForward"/>
+ <handler event="keypress" keycode="VK_INSERT" modifiers="control" command="cmd_copy"/>
+ <handler event="keypress" keycode="VK_INSERT" modifiers="shift" command="cmd_paste"/>
+
+ <handler event="keypress" keycode="VK_BACK" modifiers="alt" command="cmd_undo"/>
+ <handler event="keypress" keycode="VK_BACK" modifiers="alt,shift" command="cmd_redo"/>
+ <handler event="keypress" keycode="VK_BACK" modifiers="control" command="cmd_deleteWordBackward"/>
+
+ <handler event="keypress" key="a" modifiers="accel" command="cmd_selectAll"/>
+ <handler event="keypress" key="y" modifiers="accel" 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_deleteWordForward"/>
+ <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="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="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_LEFT" modifiers="shift" command="cmd_selectLeft" />
+ <handler event="keypress" keycode="VK_RIGHT" modifiers="shift" command="cmd_selectRight" />
+
+ <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" keycode="VK_UP" modifiers="shift" command="cmd_selectUp" />
+ <handler event="keypress" keycode="VK_DOWN" modifiers="shift" command="cmd_selectDown" />
+
+ <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" key="y" modifiers="accel" command="cmd_redo"/>
+ </handlers>
+ </binding>
+
+ <binding id="editor">
+ <handlers>
+#include ../editor-base.inc
+ <handler event="keypress" key="a" command="cmd_selectAll" modifiers="accel"/>
+ <handler event="keypress" keycode="VK_DELETE" modifiers="shift" command="cmd_cutOrDelete"/>
+ <handler event="keypress" keycode="VK_DELETE" modifiers="control" command="cmd_deleteWordForward"/>
+ <handler event="keypress" keycode="VK_INSERT" modifiers="control" command="cmd_copy"/>
+ <handler event="keypress" keycode="VK_INSERT" modifiers="shift" command="cmd_paste"/>
+ <handler event="keypress" keycode="VK_BACK" modifiers="alt" command="cmd_undo"/>
+ <handler event="keypress" keycode="VK_BACK" modifiers="alt,shift" command="cmd_redo"/>
+
+ <handler event="keypress" keycode="VK_LEFT" modifiers="accel" command="cmd_moveLeft2"/>
+ <handler event="keypress" keycode="VK_RIGHT" modifiers="accel" command="cmd_moveRight2"/>
+ <handler event="keypress" keycode="VK_LEFT" modifiers="shift,accel" command="cmd_selectLeft2"/>
+ <handler event="keypress" keycode="VK_RIGHT" modifiers="shift,accel" command="cmd_selectRight2"/>
+
+ <handler event="keypress" keycode="VK_UP" modifiers="accel" command="cmd_moveUp2"/>
+ <handler event="keypress" keycode="VK_DOWN" modifiers="accel" command="cmd_moveDown2"/>
+ <handler event="keypress" keycode="VK_UP" modifiers="shift,accel" command="cmd_selectUp2"/>
+ <handler event="keypress" keycode="VK_DOWN" modifiers="shift,accel" command="cmd_selectDown2"/>
+
+ <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_HOME" modifiers="control" command="cmd_moveTop"/>
+ <handler event="keypress" keycode="VK_END" modifiers="control" command="cmd_moveBottom"/>
+ <handler event="keypress" keycode="VK_BACK" modifiers="control" command="cmd_deleteWordBackward"/>
+
+ <handler event="keypress" keycode="VK_HOME" command="cmd_beginLine"/>
+ <handler event="keypress" keycode="VK_END" command="cmd_endLine"/>
+ <handler event="keypress" keycode="VK_HOME" command="cmd_selectBeginLine" modifiers="shift"/>
+ <handler event="keypress" keycode="VK_END" command="cmd_selectEndLine" modifiers="shift"/>
+ <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" key="y" modifiers="accel" command="cmd_redo"/>
+ </handlers>
+ </binding>
+</bindings>