2000-11-29 02:54:24 +00:00
|
|
|
<?xml version="1.0"?>
|
2012-05-21 11:12:37 +00:00
|
|
|
<!-- 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/. -->
|
|
|
|
|
2000-11-29 02:54:24 +00:00
|
|
|
|
|
|
|
<bindings id="htmlBindings"
|
|
|
|
xmlns="http://www.mozilla.org/xbl"
|
|
|
|
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
|
|
|
|
2004-09-10 07:17:31 +00:00
|
|
|
<binding id="inputFields">
|
2000-11-29 02:54:24 +00:00
|
|
|
<handlers>
|
2004-09-10 07:17:31 +00:00
|
|
|
#include ../input-fields-base.inc
|
2000-11-29 02:54:24 +00:00
|
|
|
<!-- Emacsish single-line motion and delete keys -->
|
2001-03-30 15:59:44 +00:00
|
|
|
<handler event="keypress" key="a" modifiers="control"
|
2000-11-29 02:54:24 +00:00
|
|
|
command="cmd_beginLine"/>
|
2001-03-30 15:59:44 +00:00
|
|
|
<handler event="keypress" key="e" modifiers="control"
|
2000-11-29 02:54:24 +00:00
|
|
|
command="cmd_endLine"/>
|
2001-03-30 15:59:44 +00:00
|
|
|
<handler event="keypress" key="b" modifiers="control"
|
2000-11-29 02:54:24 +00:00
|
|
|
command="cmd_charPrevious"/>
|
2001-03-30 15:59:44 +00:00
|
|
|
<handler event="keypress" key="f" modifiers="control"
|
2000-11-29 02:54:24 +00:00
|
|
|
command="cmd_charNext"/>
|
2001-03-30 15:59:44 +00:00
|
|
|
<handler event="keypress" key="h" modifiers="control"
|
2000-11-29 02:54:24 +00:00
|
|
|
command="cmd_deleteCharBackward"/>
|
2001-03-30 15:59:44 +00:00
|
|
|
<handler event="keypress" key="d" modifiers="control"
|
2000-11-29 02:54:24 +00:00
|
|
|
command="cmd_deleteCharForward"/>
|
2001-03-30 15:59:44 +00:00
|
|
|
<handler event="keypress" key="w" modifiers="control"
|
2000-11-29 02:54:24 +00:00
|
|
|
command="cmd_deleteWordBackward"/>
|
2001-03-30 15:59:44 +00:00
|
|
|
<handler event="keypress" key="u" modifiers="control"
|
2000-11-29 02:54:24 +00:00
|
|
|
command="cmd_deleteToBeginningOfLine"/>
|
2001-03-30 15:59:44 +00:00
|
|
|
<handler event="keypress" key="k" modifiers="control"
|
2000-11-29 02:54:24 +00:00
|
|
|
command="cmd_deleteToEndOfLine"/>
|
|
|
|
|
|
|
|
<!-- Alternate Windows copy/paste/undo/redo keys -->
|
2001-02-15 21:53:13 +00:00
|
|
|
<handler event="keypress" keycode="VK_DELETE" modifiers="shift"
|
|
|
|
command="cmd_cutOrDelete"/>
|
|
|
|
<handler event="keypress" keycode="VK_DELETE" modifiers="control"
|
|
|
|
command="cmd_copyOrDelete"/>
|
|
|
|
<handler event="keypress" keycode="VK_INSERT" modifiers="control"
|
2000-11-29 02:54:24 +00:00
|
|
|
command="cmd_copy"/>
|
2001-02-15 21:53:13 +00:00
|
|
|
<handler event="keypress" keycode="VK_INSERT" modifiers="shift"
|
2000-11-29 02:54:24 +00:00
|
|
|
command="cmd_paste"/>
|
|
|
|
|
|
|
|
<!-- navigating by word keys -->
|
2001-03-30 15:59:44 +00:00
|
|
|
<handler event="keypress" keycode="VK_HOME"
|
2000-11-29 02:54:24 +00:00
|
|
|
command="cmd_beginLine"/>
|
2001-03-30 15:59:44 +00:00
|
|
|
<handler event="keypress" keycode="VK_END"
|
2000-11-29 02:54:24 +00:00
|
|
|
command="cmd_endLine"/>
|
2001-03-30 15:59:44 +00:00
|
|
|
<handler event="keypress" keycode="VK_HOME" modifiers="shift"
|
2000-11-29 02:54:24 +00:00
|
|
|
command="cmd_selectBeginLine"/>
|
2001-03-30 15:59:44 +00:00
|
|
|
<handler event="keypress" keycode="VK_END" modifiers="shift"
|
2000-11-29 02:54:24 +00:00
|
|
|
command="cmd_selectEndLine"/>
|
2001-03-30 15:59:44 +00:00
|
|
|
<handler event="keypress" keycode="VK_HOME" modifiers="control"
|
2001-03-02 14:11:24 +00:00
|
|
|
command="cmd_beginLine"/>
|
2001-03-30 15:59:44 +00:00
|
|
|
<handler event="keypress" keycode="VK_END" modifiers="control"
|
2001-03-02 14:11:24 +00:00
|
|
|
command="cmd_endLine"/>
|
2001-03-30 15:59:44 +00:00
|
|
|
<handler event="keypress" keycode="VK_HOME" modifiers="control,shift"
|
2001-03-02 14:11:24 +00:00
|
|
|
command="cmd_selectBeginLine"/>
|
2001-03-30 15:59:44 +00:00
|
|
|
<handler event="keypress" keycode="VK_END" modifiers="control,shift"
|
2001-03-02 14:11:24 +00:00
|
|
|
command="cmd_selectEndLine"/>
|
2001-06-28 13:04:11 +00:00
|
|
|
<handler event="keypress" keycode="VK_BACK" modifiers="control"
|
|
|
|
command="cmd_deleteWordBackward"/>
|
2001-03-02 14:11:24 +00:00
|
|
|
|
2001-03-30 15:59:44 +00:00
|
|
|
<handler event="keypress" keycode="VK_LEFT" modifiers="control"
|
2000-11-29 02:54:24 +00:00
|
|
|
command="cmd_wordPrevious"/>
|
2001-03-30 15:59:44 +00:00
|
|
|
<handler event="keypress" keycode="VK_RIGHT" modifiers="control"
|
2000-11-29 02:54:24 +00:00
|
|
|
command="cmd_wordNext"/>
|
2001-03-30 15:59:44 +00:00
|
|
|
<handler event="keypress" keycode="VK_LEFT" modifiers="shift,control"
|
2000-11-29 02:54:24 +00:00
|
|
|
command="cmd_selectWordPrevious"/>
|
2001-03-30 15:59:44 +00:00
|
|
|
<handler event="keypress" keycode="VK_RIGHT" modifiers="shift,control"
|
2000-11-29 02:54:24 +00:00
|
|
|
command="cmd_selectWordNext"/>
|
2001-03-30 15:59:44 +00:00
|
|
|
<handler event="keypress" key="y" modifiers="accel"
|
|
|
|
command="cmd_redo"/>
|
2001-05-16 23:40:43 +00:00
|
|
|
<handler event="keypress" key="a" modifiers="alt"
|
|
|
|
command="cmd_selectAll"/>
|
2000-11-29 02:54:24 +00:00
|
|
|
</handlers>
|
|
|
|
</binding>
|
|
|
|
|
2004-09-10 07:17:31 +00:00
|
|
|
<binding id="textAreas">
|
2000-11-29 02:54:24 +00:00
|
|
|
<handlers>
|
2004-09-10 07:17:31 +00:00
|
|
|
#include ../textareas-base.inc
|
2000-11-29 02:54:24 +00:00
|
|
|
<!-- Emacsish single-line motion and delete keys -->
|
2001-03-30 15:59:44 +00:00
|
|
|
<handler event="keypress" key="a" modifiers="control"
|
2000-11-29 02:54:24 +00:00
|
|
|
command="cmd_beginLine"/>
|
2001-03-30 15:59:44 +00:00
|
|
|
<handler event="keypress" key="e" modifiers="control"
|
2000-11-29 02:54:24 +00:00
|
|
|
command="cmd_endLine"/>
|
|
|
|
<handler event="keypress" id="key_left" key="b" modifiers="control"
|
|
|
|
command="cmd_charPrevious"/>
|
|
|
|
<handler event="keypress" id="key_right" key="f" modifiers="control"
|
|
|
|
command="cmd_charNext"/>
|
|
|
|
<handler event="keypress" id="key_delback" key="h" modifiers="control"
|
|
|
|
command="cmd_deleteCharBackward"/>
|
|
|
|
<handler event="keypress" id="key_delforw" key="d" modifiers="control"
|
|
|
|
command="cmd_deleteCharForward"/>
|
|
|
|
<handler event="keypress" id="key_delwback" key="w" modifiers="control"
|
|
|
|
command="cmd_deleteWordBackward"/>
|
|
|
|
<handler event="keypress" id="key_del_bol" key="u" modifiers="control"
|
|
|
|
command="cmd_deleteToBeginningOfLine"/>
|
|
|
|
<handler event="keypress" id="key_del_eol" key="k" modifiers="control"
|
|
|
|
command="cmd_deleteToEndOfLine"/>
|
|
|
|
|
|
|
|
<!-- Alternate Windows copy/paste/undo/redo keys -->
|
2001-02-15 21:53:13 +00:00
|
|
|
<handler event="keypress" keycode="VK_DELETE" modifiers="shift"
|
|
|
|
command="cmd_cutOrDelete"/>
|
|
|
|
<handler event="keypress" keycode="VK_DELETE" modifiers="control"
|
|
|
|
command="cmd_copyOrDelete"/>
|
|
|
|
<handler event="keypress" keycode="VK_INSERT" modifiers="control"
|
2000-11-29 02:54:24 +00:00
|
|
|
command="cmd_copy"/>
|
2001-02-15 21:53:13 +00:00
|
|
|
<handler event="keypress" keycode="VK_INSERT" modifiers="shift"
|
2000-11-29 02:54:24 +00:00
|
|
|
command="cmd_paste"/>
|
|
|
|
|
|
|
|
<!-- Emacsish multi-line motion and delete keys -->
|
|
|
|
<handler event="keypress" id="key_linedown" key="n" modifiers="control"
|
|
|
|
command="cmd_lineNext"/>
|
|
|
|
<handler event="keypress" id="key_lineup" key="p" modifiers="control"
|
|
|
|
command="cmd_linePrevious"/>
|
|
|
|
|
|
|
|
<!-- handle home/end/arrow keys and redo -->
|
2001-03-30 15:59:44 +00:00
|
|
|
<handler event="keypress" keycode="VK_HOME"
|
2000-11-29 02:54:24 +00:00
|
|
|
command="cmd_beginLine"/>
|
2001-03-30 15:59:44 +00:00
|
|
|
<handler event="keypress" keycode="VK_END"
|
2000-11-29 02:54:24 +00:00
|
|
|
command="cmd_endLine"/>
|
2001-03-30 15:59:44 +00:00
|
|
|
<handler event="keypress" keycode="VK_HOME" modifiers="shift"
|
2000-11-29 02:54:24 +00:00
|
|
|
command="cmd_selectBeginLine"/>
|
2001-03-30 15:59:44 +00:00
|
|
|
<handler event="keypress" keycode="VK_END" modifiers="shift"
|
2000-11-29 02:54:24 +00:00
|
|
|
command="cmd_selectEndLine"/>
|
2001-03-02 14:11:24 +00:00
|
|
|
|
|
|
|
<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"/>
|
|
|
|
|
2001-03-30 15:59:44 +00:00
|
|
|
<handler event="keypress" keycode="VK_PAGE_UP"
|
|
|
|
command="cmd_movePageUp"/>
|
|
|
|
<handler event="keypress" keycode="VK_PAGE_DOWN"
|
|
|
|
command="cmd_movePageDown"/>
|
2002-08-28 13:36:44 +00:00
|
|
|
<handler event="keypress" keycode="VK_PAGE_UP" modifiers="shift"
|
|
|
|
command="cmd_selectPageUp"/>
|
|
|
|
<handler event="keypress" keycode="VK_PAGE_DOWN" modifiers="shift"
|
|
|
|
command="cmd_selectPageDown"/>
|
2001-03-30 15:59:44 +00:00
|
|
|
|
|
|
|
<handler event="keypress" keycode="VK_LEFT" modifiers="control"
|
2000-11-29 02:54:24 +00:00
|
|
|
command="cmd_wordPrevious"/>
|
2001-03-30 15:59:44 +00:00
|
|
|
<handler event="keypress" keycode="VK_RIGHT" modifiers="control"
|
2000-11-29 02:54:24 +00:00
|
|
|
command="cmd_wordNext"/>
|
2001-03-30 15:59:44 +00:00
|
|
|
<handler event="keypress" keycode="VK_LEFT" modifiers="shift,control"
|
2000-11-29 02:54:24 +00:00
|
|
|
command="cmd_selectWordPrevious"/>
|
2001-03-30 15:59:44 +00:00
|
|
|
<handler event="keypress" keycode="VK_RIGHT" modifiers="shift,control"
|
2000-11-29 02:54:24 +00:00
|
|
|
command="cmd_selectWordNext"/>
|
2001-06-28 13:04:11 +00:00
|
|
|
<handler event="keypress" keycode="VK_BACK" modifiers="control"
|
|
|
|
command="cmd_deleteWordBackward"/>
|
2001-03-30 15:59:44 +00:00
|
|
|
<handler event="keypress" key="y" modifiers="accel"
|
|
|
|
command="cmd_redo"/>
|
2001-05-16 23:40:43 +00:00
|
|
|
<handler event="keypress" key="a" modifiers="alt"
|
|
|
|
command="cmd_selectAll"/>
|
2000-11-29 02:54:24 +00:00
|
|
|
</handlers>
|
|
|
|
</binding>
|
|
|
|
|
|
|
|
<binding id="browser">
|
|
|
|
<handlers>
|
2004-09-10 07:17:31 +00:00
|
|
|
#include ../browser-base.inc
|
2002-08-29 13:01:57 +00:00
|
|
|
<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"/>
|
|
|
|
|
2000-11-29 02:54:24 +00:00
|
|
|
<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" />
|
2004-12-31 03:12:17 +00:00
|
|
|
<handler event="keypress" keycode="VK_HOME" command="cmd_beginLine"/>
|
|
|
|
<handler event="keypress" keycode="VK_END" command="cmd_endLine"/>
|
2011-12-24 00:11:30 +00:00
|
|
|
<handler event="keypress" keycode="VK_HOME" modifiers="control" command="cmd_moveTop"/>
|
|
|
|
<handler event="keypress" keycode="VK_END" modifiers="control" command="cmd_moveBottom"/>
|
2000-11-29 02:54:24 +00:00
|
|
|
<handler event="keypress" keycode="VK_HOME" modifiers="shift,control" command="cmd_selectTop" />
|
|
|
|
<handler event="keypress" keycode="VK_END" modifiers="shift,control" command="cmd_selectBottom" />
|
2004-12-31 03:12:17 +00:00
|
|
|
|
2001-02-15 05:07:46 +00:00
|
|
|
<handler event="keypress" keycode="VK_LEFT" modifiers="control" command="cmd_wordPrevious" />
|
|
|
|
<handler event="keypress" keycode="VK_RIGHT" modifiers="control" command="cmd_wordNext" />
|
|
|
|
<handler event="keypress" keycode="VK_LEFT" modifiers="control,shift" command="cmd_selectWordPrevious" />
|
|
|
|
<handler event="keypress" keycode="VK_RIGHT" modifiers="control,shift" command="cmd_selectWordNext" />
|
|
|
|
<handler event="keypress" keycode="VK_LEFT" modifiers="shift" command="cmd_selectCharPrevious" />
|
|
|
|
<handler event="keypress" keycode="VK_RIGHT" modifiers="shift" command="cmd_selectCharNext" />
|
|
|
|
<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_UP" modifiers="shift" command="cmd_selectLinePrevious" />
|
|
|
|
<handler event="keypress" keycode="VK_DOWN" modifiers="shift" command="cmd_selectLineNext" />
|
2001-05-16 23:40:43 +00:00
|
|
|
<handler event="keypress" key="a" modifiers="alt" command="cmd_selectAll"/>
|
2000-11-29 02:54:24 +00:00
|
|
|
</handlers>
|
|
|
|
</binding>
|
|
|
|
|
|
|
|
<binding id="editor">
|
|
|
|
<handlers>
|
2004-09-10 07:17:31 +00:00
|
|
|
#include ../editor-base.inc
|
2000-11-29 02:54:24 +00:00
|
|
|
<handler event="keypress" key="h" modifiers="control" command="cmd_deleteCharBackward"/>
|
|
|
|
<handler event="keypress" key="d" modifiers="control" command="cmd_deleteCharForward"/>
|
|
|
|
<handler event="keypress" key="k" modifiers="control" command="cmd_deleteToEndOfLine"/>
|
|
|
|
<handler event="keypress" key="u" modifiers="control" command="cmd_deleteToBeginningOfLine"/>
|
|
|
|
<handler event="keypress" key="a" modifiers="control" command="cmd_beginLine"/>
|
|
|
|
<handler event="keypress" key="e" modifiers="control" command="cmd_endLine"/>
|
|
|
|
<handler event="keypress" key="b" modifiers="control" command="cmd_charPrevious"/>
|
|
|
|
<handler event="keypress" key="f" modifiers="control" command="cmd_charNext"/>
|
|
|
|
<handler event="keypress" key="p" modifiers="control" command="cmd_linePrevious"/>
|
|
|
|
<handler event="keypress" key="n" modifiers="control" command="cmd_lineNext"/>
|
|
|
|
<handler event="keypress" key="x" modifiers="control" command="cmd_cut"/>
|
|
|
|
<handler event="keypress" key="c" modifiers="control" command="cmd_copy"/>
|
|
|
|
<handler event="keypress" key="v" modifiers="control" command="cmd_paste"/>
|
|
|
|
<handler event="keypress" key="z" modifiers="control" command="cmd_undo"/>
|
2001-03-30 15:59:44 +00:00
|
|
|
<handler event="keypress" key="y" modifiers="accel" command="cmd_redo"/>
|
2001-05-16 23:40:43 +00:00
|
|
|
<handler event="keypress" key="a" modifiers="alt" command="cmd_selectAll"/>
|
2001-02-15 21:53:13 +00:00
|
|
|
<handler event="keypress" keycode="VK_DELETE" modifiers="shift" command="cmd_cutOrDelete"/>
|
|
|
|
<handler event="keypress" keycode="VK_DELETE" modifiers="control" command="cmd_copyOrDelete"/>
|
2000-11-29 02:54:24 +00:00
|
|
|
<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_LEFT" modifiers="control" command="cmd_wordPrevious"/>
|
|
|
|
<handler event="keypress" keycode="VK_RIGHT" modifiers="control" command="cmd_wordNext"/>
|
2001-01-04 00:01:34 +00:00
|
|
|
<handler event="keypress" keycode="VK_LEFT" modifiers="shift,control" command="cmd_selectWordPrevious"/>
|
|
|
|
<handler event="keypress" keycode="VK_RIGHT" modifiers="shift,control" command="cmd_selectWordNext"/>
|
2001-06-28 13:04:11 +00:00
|
|
|
<handler event="keypress" keycode="VK_BACK" modifiers="control" command="cmd_deleteWordBackward"/>
|
2001-03-30 15:59:44 +00:00
|
|
|
<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"/>
|
2000-11-29 02:54:24 +00:00
|
|
|
<handler event="keypress" keycode="VK_HOME" modifiers="shift,control" command="cmd_selectTop"/>
|
|
|
|
<handler event="keypress" keycode="VK_END" modifiers="shift,control" command="cmd_selectBottom"/>
|
2001-03-02 14:11:24 +00:00
|
|
|
<handler event="keypress" keycode="VK_HOME" modifiers="control" command="cmd_moveTop"/>
|
|
|
|
<handler event="keypress" keycode="VK_END" modifiers="control" command="cmd_moveBottom"/>
|
2001-03-30 15:59:44 +00:00
|
|
|
<handler event="keypress" keycode="VK_PAGE_UP" command="cmd_movePageUp"/>
|
|
|
|
<handler event="keypress" keycode="VK_PAGE_DOWN" command="cmd_movePageDown"/>
|
2002-08-28 13:36:44 +00:00
|
|
|
<handler event="keypress" keycode="VK_PAGE_UP" modifiers="shift" command="cmd_selectPageUp"/>
|
|
|
|
<handler event="keypress" keycode="VK_PAGE_DOWN" modifiers="shift" command="cmd_selectPageDown"/>
|
2000-11-29 02:54:24 +00:00
|
|
|
</handlers>
|
|
|
|
</binding>
|
|
|
|
</bindings>
|