This commit is contained in:
brade%netscape.com 2001-03-30 15:56:20 +00:00
Родитель 0fb1383935
Коммит 040007ae9b
1 изменённых файлов: 61 добавлений и 94 удалений

Просмотреть файл

@ -7,104 +7,54 @@
<binding id="inputFields" extends="resource:///res/builtin/htmlBindings.xml#inputFieldsBase"> <binding id="inputFields" extends="resource:///res/builtin/htmlBindings.xml#inputFieldsBase">
<handlers> <handlers>
<handler event="keypress" key="a" modifiers="accel" <handler event="keypress" key="a" modifiers="accel" command="cmd_selectAll"/>
command="cmd_selectAll"/> <handler event="keypress" key="z" modifiers="accel,shift" command="cmd_redo"/>
<handler event="keypress" id="key_redo" key="z" modifiers="accel"
command="cmd_redo"/>
<handler event="keypress" id="key_up" keycode="VK_UP" <handler event="keypress" keycode="VK_UP" command="cmd_beginLine"/>
command="cmd_linePrevious"/> <handler event="keypress" keycode="VK_DOWN" command="cmd_endLine"/>
<handler event="keypress" id="key_down" keycode="VK_DOWN" <handler event="keypress" keycode="VK_UP" modifiers="shift" command="cmd_selectBeginLine"/>
command="cmd_lineNext"/> <handler event="keypress" keycode="VK_DOWN" modifiers="shift" command="cmd_selectEndLine"/>
<handler event="keypress" id="key_up_shift" keycode="VK_UP" modifiers="shift" <handler event="keypress" keycode="VK_UP" modifiers="accel" command="cmd_beginLine"/>
command="cmd_selectBeginLine"/> <handler event="keypress" keycode="VK_DOWN" modifiers="accel" command="cmd_endLine"/>
<handler event="keypress" id="key_down_shift" keycode="VK_DOWN" modifiers="shift"
command="cmd_selectEndLine"/>
<handler event="keypress" id="key_up_meta" keycode="VK_UP" modifiers="meta"
command="cmd_scrollPageUp"/>
<handler event="keypress" id="key_down_meta" keycode="VK_DOWN" modifiers="meta"
command="cmd_scrollPageDown"/>
<handler event="keypress" id="key_home" keycode="VK_HOME" <handler event="keypress" keycode="VK_LEFT" modifiers="alt" command="cmd_wordPrevious"/>
command="cmd_beginLine"/> <handler event="keypress" keycode="VK_RIGHT" modifiers="alt" command="cmd_wordNext"/>
<handler event="keypress" id="key_end" keycode="VK_END" <handler event="keypress" keycode="VK_LEFT" modifiers="alt,shift" command="cmd_selectWordPrevious"/>
command="cmd_endLine"/> <handler event="keypress" keycode="VK_RIGHT" modifiers="alt,shift" command="cmd_selectWordNext"/>
<handler event="keypress" id="key_homeshift" keycode="VK_HOME"
modifiers="shift" command="cmd_selectBeginLine"/>
<handler event="keypress" id="key_endshift" keycode="VK_END"
modifiers="shift" command="cmd_selectEndLine"/>
<handler event="keypress" id="key_leftalt" keycode="VK_LEFT" modifiers="alt"
command="cmd_wordPrevious"/>
<handler event="keypress" id="key_rightalt" keycode="VK_RIGHT" modifiers="alt"
command="cmd_wordNext"/>
<handler event="keypress" id="key_leftshiftalt" keycode="VK_LEFT" modifiers="alt,shift"
command="cmd_selectWordPrevious"/>
<handler event="keypress" id="key_rightshiftalt" keycode="VK_RIGHT" modifiers="alt,shift"
command="cmd_selectWordNext"/>
<handler event="keypress" id="key_leftmeta" keycode="VK_LEFT" modifiers="meta" <handler event="keypress" keycode="VK_LEFT" modifiers="accel" command="cmd_beginLine"/>
command="cmd_linePrevious"/> <handler event="keypress" keycode="VK_RIGHT" modifiers="accel" command="cmd_endLine"/>
<handler event="keypress" id="key_rightmeta" keycode="VK_RIGHT" modifiers="meta" <handler event="keypress" keycode="VK_LEFT" modifiers="accel,shift" command="cmd_selectBeginLine"/>
command="cmd_lineNext"/> <handler event="keypress" keycode="VK_RIGHT" modifiers="accel,shift" command="cmd_selectEndLine"/>
<handler event="keypress" id="key_leftshiftmeta" keycode="VK_LEFT" modifiers="meta,shift"
command="cmd_selectBeginLine"/>
<handler event="keypress" id="key_rightshiftmeta" keycode="VK_RIGHT" modifiers="meta,shift"
command="cmd_selectEndLine"/>
<!-- Emacsish single-line motion and delete keys -->
<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"/>
</handlers> </handlers>
</binding> </binding>
<binding id="textAreas" extends="resource:///res/builtin/htmlBindings.xml#textAreasBase"> <binding id="textAreas" extends="resource:///res/builtin/htmlBindings.xml#textAreasBase">
<handlers> <handlers>
<handler event="keypress" key="z" modifiers="accel,shift" command="cmd_redo"/>
<handler event="keypress" key="a" modifiers="accel" command="cmd_selectAll"/>
<handler event="keypress" key="a" modifiers="accel" <handler event="keypress" keycode="VK_HOME" command="cmd_scrollTop"/>
command="cmd_selectAll"/> <handler event="keypress" keycode="VK_END" command="cmd_scrollBottom"/>
<handler event="keypress" id="key_redo" key="z" modifiers="accel,shift" <handler event="keypress" keycode="VK_HOME" modifiers="shift" command="cmd_scrollTop"/>
command="cmd_redo"/> <handler event="keypress" keycode="VK_END" modifiers="shift" command="cmd_scrollBottom"/>
<handler event="keypress" keycode="VK_PAGE_UP" command="cmd_scrollPageUp"/>
<handler event="keypress" keycode="VK_PAGE_DOWN" command="cmd_scrollPageDown"/>
<handler event="keypress" id="key_home" keycode="VK_HOME" <handler event="keypress" keycode="VK_UP" modifiers="accel" command="cmd_moveTop"/>
command="cmd_scrollPageUp"/> <handler event="keypress" keycode="VK_DOWN" modifiers="accel" command="cmd_moveBottom"/>
<handler event="keypress" id="key_end" keycode="VK_END" <handler event="keypress" keycode="VK_UP" modifiers="accel,shift" command="cmd_selectTop"/>
command="cmd_scrollPageDown"/> <handler event="keypress" keycode="VK_DOWN" modifiers="accel,shift" command="cmd_selectBottom"/>
<handler event="keypress" id="key_homeshift" keycode="VK_HOME" modifiers="shift"
command="cmd_selectBeginLine"/>
<handler event="keypress" id="key_endshift" keycode="VK_END" modifiers="shift"
command="cmd_selectEndLine"/>
<handler event="keypress" id="key_up_meta" keycode="VK_UP" modifiers="meta" <handler event="keypress" keycode="VK_LEFT" modifiers="alt" command="cmd_wordPrevious"/>
command="cmd_scrollPageUp"/> <handler event="keypress" keycode="VK_RIGHT" modifiers="alt" command="cmd_wordNext"/>
<handler event="keypress" id="key_down_meta" keycode="VK_DOWN" modifiers="meta" <handler event="keypress" keycode="VK_LEFT" modifiers="alt,shift" command="cmd_selectWordPrevious"/>
command="cmd_scrollPageDown"/> <handler event="keypress" keycode="VK_RIGHT" modifiers="alt,shift" command="cmd_selectWordNext"/>
<handler event="keypress" id="key_leftalt" keycode="VK_LEFT" modifiers="alt"
command="cmd_wordPrevious"/>
<handler event="keypress" id="key_rightalt" keycode="VK_RIGHT" modifiers="alt"
command="cmd_wordNext"/>
<handler event="keypress" id="key_leftshiftalt" keycode="VK_LEFT" modifiers="alt,shift"
command="cmd_selectWordPrevious"/>
<handler event="keypress" id="key_rightshiftalt" keycode="VK_RIGHT" modifiers="alt,shift"
command="cmd_selectWordNext"/>
<handler event="keypress" id="key_leftmeta" keycode="VK_LEFT" modifiers="meta"
command="cmd_linePrevious"/>
<handler event="keypress" id="key_rightmeta" keycode="VK_RIGHT" modifiers="meta"
command="cmd_lineNext"/>
<handler event="keypress" id="key_leftshiftmeta" keycode="VK_LEFT" modifiers="meta"
command="cmd_selectBeginLine"/>
<handler event="keypress" id="key_rightshiftmeta" keycode="VK_RIGHT" modifiers="meta,shift"
command="cmd_selectEndLine"/>
<!-- Emacsish single-line motion and delete keys -->
<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" keycode="VK_LEFT" modifiers="accel" command="cmd_beginLine"/>
<handler event="keypress" keycode="VK_RIGHT" modifiers="accel" command="cmd_endLine"/>
<handler event="keypress" keycode="VK_LEFT" modifiers="accel,shift" command="cmd_selectBeginLine"/>
<handler event="keypress" keycode="VK_RIGHT" modifiers="accel,shift" command="cmd_selectEndLine"/>
</handlers> </handlers>
</binding> </binding>
@ -118,8 +68,6 @@
<handler event="keypress" keycode="VK_RIGHT" modifiers="alt,shift" command="cmd_selectWordNext" /> <handler event="keypress" keycode="VK_RIGHT" modifiers="alt,shift" command="cmd_selectWordNext" />
<handler event="keypress" keycode="VK_LEFT" modifiers="shift" command="cmd_selectCharPrevious" /> <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_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_UP" modifiers="shift" command="cmd_selectLinePrevious" />
<handler event="keypress" keycode="VK_DOWN" modifiers="shift" command="cmd_selectLineNext" /> <handler event="keypress" keycode="VK_DOWN" modifiers="shift" command="cmd_selectLineNext" />
</handlers> </handlers>
@ -127,17 +75,36 @@
<binding id="editor"> <binding id="editor">
<handlers> <handlers>
<handler event="keypress" key="a" modifiers="accel" <handler event="keypress" key="a" modifiers="accel" command="cmd_selectAll"/>
command="cmd_selectAll"/>
<handler event="keypress" key="y" modifiers="accel" oncommand="event.preventDefault();"/>
<handler event="keypress" key="z" modifiers="accel,shift" command="cmd_redo" /> <handler event="keypress" key="z" modifiers="accel,shift" command="cmd_redo" />
<handler event="keypress" keycode="VK_HOME" command="cmd_scrollTop" /> <handler event="keypress" keycode="VK_HOME" command="cmd_scrollTop" />
<handler event="keypress" keycode="VK_END" command="cmd_scrollBottom" /> <handler event="keypress" keycode="VK_END" command="cmd_scrollBottom" />
<handler event="keypress" keycode="VK_HOME" modifiers="shift" command="cmd_scrollTop"/>
<handler event="keypress" keycode="VK_END" modifiers="shift" command="cmd_scrollBottom"/>
<handler event="keypress" keycode="VK_PAGE_UP" command="cmd_scrollPageUp"/>
<handler event="keypress" keycode="VK_PAGE_DOWN" command="cmd_scrollPageDown"/>
<handler event="keypress" keycode="VK_LEFT" modifiers="alt" command="cmd_wordPrevious" /> <handler event="keypress" keycode="VK_LEFT" modifiers="alt" command="cmd_wordPrevious" />
<handler event="keypress" keycode="VK_RIGHT" modifiers="alt" command="cmd_wordNext" /> <handler event="keypress" keycode="VK_RIGHT" modifiers="alt" command="cmd_wordNext" />
<handler event="keypress" keycode="VK_LEFT" modifiers="shift,alt" command="cmd_selectWordPrevious" /> <handler event="keypress" keycode="VK_LEFT" modifiers="shift,alt" command="cmd_selectWordPrevious" />
<handler event="keypress" keycode="VK_RIGHT" modifiers="shift,alt" command="cmd_selectWordNext" /> <handler event="keypress" keycode="VK_RIGHT" modifiers="shift,alt" command="cmd_selectWordNext" />
<handler event="keypress" keycode="VK_LEFT" modifiers="accel" command="cmd_beginLine"/>
<handler event="keypress" keycode="VK_RIGHT" modifiers="accel" command="cmd_endLine"/>
<handler event="keypress" keycode="VK_LEFT" modifiers="accel,shift" command="cmd_selectBeginLine"/>
<handler event="keypress" keycode="VK_RIGHT" modifiers="accel,shift" command="cmd_selectEndLine"/>
<handler event="keypress" keycode="VK_DELETE" modifiers="shift" command="cmd_deleteCharForward" /> <handler event="keypress" keycode="VK_DELETE" modifiers="shift" command="cmd_deleteCharForward" />
<handler event="keypress" keycode="VK_UP" modifiers="alt" command="cmd_movePageUp"/>
<handler event="keypress" keycode="VK_DOWN" modifiers="alt" command="cmd_movePageDown"/>
<handler event="keypress" keycode="VK_UP" modifiers="alt,shift" command="cmd_selectPageUp"/>
<handler event="keypress" keycode="VK_DOWN" modifiers="alt,shift" command="cmd_selectPageDown"/>
<handler event="keypress" keycode="VK_UP" modifiers="accel" command="cmd_moveTop"/>
<handler event="keypress" keycode="VK_DOWN" modifiers="accel" command="cmd_moveBottom"/>
<handler event="keypress" keycode="VK_UP" modifiers="accel,shift" command="cmd_selectTop"/>
<handler event="keypress" keycode="VK_DOWN" modifiers="accel,shift" command="cmd_selectBottom"/>
</handlers> </handlers>
</binding> </binding>