home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 January / 01_02.iso / linux / mozilla-installer_linux / xpi / browser.xpi / bin / res / builtin / platformHTMLBindings.xml < prev   
Extensible Markup Language  |  2001-11-20  |  12KB  |  224 lines

  1. <?xml version="1.0"?>
  2.  
  3. <bindings id="htmlBindings"
  4.    xmlns="http://www.mozilla.org/xbl"
  5.    xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  6.  
  7.   <binding id="inputFields" extends="resource:///res/builtin/htmlBindings.xml#inputFieldsBase">
  8.     <handlers>
  9.     <!-- Emacsish single-line motion and delete keys -->
  10.     <handler event="keypress" key="a" modifiers="control"
  11.         command="cmd_beginLine"/>
  12.     <handler event="keypress" key="e" modifiers="control"
  13.         command="cmd_endLine"/>
  14.     <handler event="keypress" key="b" modifiers="control"
  15.         command="cmd_charPrevious"/>
  16.     <handler event="keypress" key="f" modifiers="control"
  17.         command="cmd_charNext"/>
  18.     <handler event="keypress" key="h" modifiers="control"
  19.         command="cmd_deleteCharBackward"/>
  20.     <handler event="keypress" key="d" modifiers="control"
  21.         command="cmd_deleteCharForward"/>
  22.     <handler event="keypress" key="w" modifiers="control"
  23.         command="cmd_deleteWordBackward"/>
  24.     <handler event="keypress" key="u" modifiers="control"
  25.         command="cmd_deleteToBeginningOfLine"/>
  26.     <handler event="keypress" key="k" modifiers="control"
  27.         command="cmd_deleteToEndOfLine"/>
  28.  
  29.     <!-- Alternate Windows copy/paste/undo/redo keys -->
  30.     <handler event="keypress" keycode="VK_DELETE" modifiers="shift"
  31.         command="cmd_cutOrDelete"/>
  32.     <handler event="keypress" keycode="VK_DELETE" modifiers="control"
  33.         command="cmd_copyOrDelete"/>
  34.     <handler event="keypress" keycode="VK_INSERT" modifiers="control" 
  35.         command="cmd_copy"/>
  36.     <handler event="keypress" keycode="VK_INSERT" modifiers="shift"
  37.         command="cmd_paste"/>
  38.  
  39.     <!-- navigating by word keys -->
  40.     <handler event="keypress" keycode="VK_HOME" 
  41.         command="cmd_beginLine"/>
  42.     <handler event="keypress" keycode="VK_END" 
  43.         command="cmd_endLine"/>
  44.     <handler event="keypress" keycode="VK_HOME" modifiers="shift"
  45.         command="cmd_selectBeginLine"/>
  46.     <handler event="keypress" keycode="VK_END" modifiers="shift"
  47.         command="cmd_selectEndLine"/>
  48.     <handler event="keypress" keycode="VK_HOME" modifiers="control"
  49.         command="cmd_beginLine"/>
  50.     <handler event="keypress" keycode="VK_END" modifiers="control" 
  51.         command="cmd_endLine"/>
  52.     <handler event="keypress" keycode="VK_HOME" modifiers="control,shift"
  53.         command="cmd_selectBeginLine"/>
  54.     <handler event="keypress" keycode="VK_END" modifiers="control,shift"
  55.         command="cmd_selectEndLine"/>
  56.     <handler event="keypress" keycode="VK_BACK" modifiers="control"
  57.         command="cmd_deleteWordBackward"/>
  58.  
  59.     <handler event="keypress" keycode="VK_LEFT" modifiers="control" 
  60.         command="cmd_wordPrevious"/>
  61.     <handler event="keypress" keycode="VK_RIGHT" modifiers="control"
  62.         command="cmd_wordNext"/>
  63.     <handler event="keypress" keycode="VK_LEFT" modifiers="shift,control" 
  64.         command="cmd_selectWordPrevious"/>
  65.     <handler event="keypress" keycode="VK_RIGHT" modifiers="shift,control" 
  66.         command="cmd_selectWordNext"/>
  67.     <handler event="keypress" key="y" modifiers="accel"
  68.         command="cmd_redo"/>
  69.     <handler event="keypress" key="r" modifiers="accel"
  70.         command="cmd_redo"/>
  71.     <handler event="keypress" key="a" modifiers="alt"
  72.         command="cmd_selectAll"/>
  73.     </handlers>
  74.   </binding>
  75.  
  76.   <binding id="textAreas" extends="resource:///res/builtin/htmlBindings.xml#textAreasBase">
  77.     <handlers>
  78.  
  79.     <!-- Emacsish single-line motion and delete keys -->
  80.     <handler event="keypress" key="a" modifiers="control"
  81.         command="cmd_beginLine"/>
  82.     <handler event="keypress" key="e" modifiers="control"
  83.         command="cmd_endLine"/>
  84.     <handler event="keypress" id="key_left" key="b" modifiers="control"
  85.         command="cmd_charPrevious"/>
  86.     <handler event="keypress" id="key_right" key="f" modifiers="control"
  87.         command="cmd_charNext"/>
  88.     <handler event="keypress" id="key_delback" key="h" modifiers="control"
  89.         command="cmd_deleteCharBackward"/>
  90.     <handler event="keypress" id="key_delforw" key="d" modifiers="control"
  91.         command="cmd_deleteCharForward"/>
  92.     <handler event="keypress" id="key_delwback" key="w" modifiers="control"
  93.         command="cmd_deleteWordBackward"/>
  94.     <handler event="keypress" id="key_del_bol" key="u" modifiers="control"
  95.         command="cmd_deleteToBeginningOfLine"/>
  96.     <handler event="keypress" id="key_del_eol" key="k" modifiers="control"
  97.         command="cmd_deleteToEndOfLine"/>
  98.  
  99.     <!-- Alternate Windows copy/paste/undo/redo keys -->
  100.     <handler event="keypress" keycode="VK_DELETE" modifiers="shift"
  101.         command="cmd_cutOrDelete"/>
  102.     <handler event="keypress" keycode="VK_DELETE" modifiers="control"
  103.         command="cmd_copyOrDelete"/>
  104.     <handler event="keypress" keycode="VK_INSERT" modifiers="control"
  105.         command="cmd_copy"/>
  106.     <handler event="keypress" keycode="VK_INSERT" modifiers="shift"
  107.         command="cmd_paste"/>
  108.  
  109.     <!-- Emacsish multi-line motion and delete keys -->
  110.     <handler event="keypress" id="key_linedown" key="n" modifiers="control"
  111.         command="cmd_lineNext"/>
  112.     <handler event="keypress" id="key_lineup" key="p" modifiers="control"
  113.         command="cmd_linePrevious"/>
  114.  
  115.     <!-- handle home/end/arrow keys and redo -->
  116.     <handler event="keypress" keycode="VK_HOME" 
  117.         command="cmd_beginLine"/>
  118.     <handler event="keypress" keycode="VK_END" 
  119.         command="cmd_endLine"/>
  120.     <handler event="keypress" keycode="VK_HOME" modifiers="shift"
  121.         command="cmd_selectBeginLine"/>
  122.     <handler event="keypress" keycode="VK_END" modifiers="shift"
  123.         command="cmd_selectEndLine"/>
  124.  
  125.     <handler event="keypress" keycode="VK_HOME" modifiers="control" 
  126.         command="cmd_moveTop"/>
  127.     <handler event="keypress" keycode="VK_END" modifiers="control" 
  128.         command="cmd_moveBottom"/>
  129.     <handler event="keypress" keycode="VK_HOME" modifiers="shift,control"
  130.         command="cmd_selectTop"/>
  131.     <handler event="keypress" keycode="VK_END" modifiers="shift,control"
  132.         command="cmd_selectBottom"/>
  133.  
  134.     <handler event="keypress" keycode="VK_PAGE_UP" 
  135.         command="cmd_movePageUp"/>
  136.     <handler event="keypress" keycode="VK_PAGE_DOWN" 
  137.         command="cmd_movePageDown"/>
  138.  
  139.     <handler event="keypress" keycode="VK_LEFT" modifiers="control" 
  140.         command="cmd_wordPrevious"/>
  141.     <handler event="keypress" keycode="VK_RIGHT" modifiers="control" 
  142.         command="cmd_wordNext"/>
  143.     <handler event="keypress" keycode="VK_LEFT" modifiers="shift,control" 
  144.         command="cmd_selectWordPrevious"/>
  145.     <handler event="keypress" keycode="VK_RIGHT" modifiers="shift,control" 
  146.         command="cmd_selectWordNext"/>
  147.     <handler event="keypress" keycode="VK_BACK" modifiers="control"
  148.         command="cmd_deleteWordBackward"/>
  149.     <handler event="keypress" key="y" modifiers="accel"
  150.         command="cmd_redo"/>
  151.     <handler event="keypress" key="r" modifiers="accel"
  152.         command="cmd_redo"/>
  153.     <handler event="keypress" key="a" modifiers="alt"
  154.         command="cmd_selectAll"/>
  155.     </handlers>
  156.   </binding>
  157.  
  158.   <binding id="browser">
  159.     <handlers>
  160.       <handler event="keypress" keycode="VK_DELETE" modifiers="shift" command="cmd_cut" /> 
  161.       <handler event="keypress" keycode="VK_DELETE" modifiers="control" command="cmd_copy" /> 
  162.       <handler event="keypress" keycode="VK_INSERT" modifiers="control" command="cmd_copy" /> 
  163.       <handler event="keypress" keycode="VK_INSERT" modifiers="shift" command="cmd_paste" /> 
  164.       <handler event="keypress" keycode="VK_HOME" modifiers="shift,control" command="cmd_selectTop" /> 
  165.       <handler event="keypress" keycode="VK_END" modifiers="shift,control" command="cmd_selectBottom" /> 
  166.       <handler event="keypress" keycode="VK_F20" command="cmd_cut" /> 
  167.       <handler event="keypress" keycode="VK_F16" command="cmd_copy" /> 
  168.       <handler event="keypress" keycode="VK_F18" command="cmd_paste" /> 
  169.       <handler event="keypress" keycode="VK_LEFT" modifiers="control" command="cmd_wordPrevious" />
  170.       <handler event="keypress" keycode="VK_RIGHT" modifiers="control" command="cmd_wordNext" />
  171.       <handler event="keypress" keycode="VK_LEFT" modifiers="control,shift" command="cmd_selectWordPrevious" />
  172.       <handler event="keypress" keycode="VK_RIGHT" modifiers="control,shift" command="cmd_selectWordNext" />
  173.       <handler event="keypress" keycode="VK_LEFT" modifiers="shift" command="cmd_selectCharPrevious" />
  174.       <handler event="keypress" keycode="VK_RIGHT" modifiers="shift" command="cmd_selectCharNext" />
  175.       <handler event="keypress" keycode="VK_HOME" modifiers="shift" command="cmd_selectBeginLine" />
  176.       <handler event="keypress" keycode="VK_END" modifiers="shift" command="cmd_selectEndLine" />
  177.       <handler event="keypress" keycode="VK_UP" modifiers="shift" command="cmd_selectLinePrevious" />
  178.       <handler event="keypress" keycode="VK_DOWN" modifiers="shift" command="cmd_selectLineNext" />
  179.       <handler event="keypress" key="a" modifiers="alt" command="cmd_selectAll"/>
  180.     </handlers>
  181.   </binding>
  182.  
  183.   <binding id="editor">
  184.     <handlers>
  185.       <handler event="keypress" key="h" modifiers="control" command="cmd_deleteCharBackward"/>
  186.       <handler event="keypress" key="d" modifiers="control" command="cmd_deleteCharForward"/>
  187.       <handler event="keypress" key="k" modifiers="control" command="cmd_deleteToEndOfLine"/>
  188.       <handler event="keypress" key="u" modifiers="control" command="cmd_deleteToBeginningOfLine"/>
  189.       <handler event="keypress" key="a" modifiers="control" command="cmd_beginLine"/>
  190.       <handler event="keypress" key="e" modifiers="control" command="cmd_endLine"/>
  191.       <handler event="keypress" key="b" modifiers="control" command="cmd_charPrevious"/>
  192.       <handler event="keypress" key="f" modifiers="control" command="cmd_charNext"/>
  193.       <handler event="keypress" key="p" modifiers="control" command="cmd_linePrevious"/>
  194.       <handler event="keypress" key="n" modifiers="control" command="cmd_lineNext"/>
  195.       <handler event="keypress" key="x" modifiers="control" command="cmd_cut"/>
  196.       <handler event="keypress" key="c" modifiers="control" command="cmd_copy"/>
  197.       <handler event="keypress" key="v" modifiers="control" command="cmd_paste"/>
  198.       <handler event="keypress" key="z" modifiers="control" command="cmd_undo"/>
  199.       <handler event="keypress" key="r" modifiers="accel"   command="cmd_redo"/>
  200.       <handler event="keypress" key="y" modifiers="accel"   command="cmd_redo"/>
  201.       <handler event="keypress" key="a" modifiers="alt" command="cmd_selectAll"/>
  202.       <handler event="keypress" keycode="VK_DELETE" modifiers="shift" command="cmd_cutOrDelete"/>
  203.       <handler event="keypress" keycode="VK_DELETE" modifiers="control" command="cmd_copyOrDelete"/>
  204.       <handler event="keypress" keycode="VK_INSERT" modifiers="control" command="cmd_copy"/>
  205.       <handler event="keypress" keycode="VK_INSERT" modifiers="shift" command="cmd_paste"/>
  206.       <handler event="keypress" keycode="VK_LEFT" modifiers="control" command="cmd_wordPrevious"/>
  207.       <handler event="keypress" keycode="VK_RIGHT" modifiers="control" command="cmd_wordNext"/>
  208.       <handler event="keypress" keycode="VK_LEFT" modifiers="shift,control" command="cmd_selectWordPrevious"/>
  209.       <handler event="keypress" keycode="VK_RIGHT" modifiers="shift,control" command="cmd_selectWordNext"/>
  210.       <handler event="keypress" keycode="VK_BACK" modifiers="control" command="cmd_deleteWordBackward"/>
  211.       <handler event="keypress" keycode="VK_HOME" command="cmd_beginLine"/>
  212.       <handler event="keypress" keycode="VK_END" command="cmd_endLine"/>
  213.       <handler event="keypress" keycode="VK_HOME" modifiers="shift" command="cmd_selectBeginLine"/>
  214.       <handler event="keypress" keycode="VK_END" modifiers="shift" command="cmd_selectEndLine"/>
  215.       <handler event="keypress" keycode="VK_HOME" modifiers="shift,control" command="cmd_selectTop"/>
  216.       <handler event="keypress" keycode="VK_END" modifiers="shift,control" command="cmd_selectBottom"/>
  217.       <handler event="keypress" keycode="VK_HOME" modifiers="control" command="cmd_moveTop"/>
  218.       <handler event="keypress" keycode="VK_END" modifiers="control" command="cmd_moveBottom"/>
  219.       <handler event="keypress" keycode="VK_PAGE_UP" command="cmd_movePageUp"/>
  220.       <handler event="keypress" keycode="VK_PAGE_DOWN" command="cmd_movePageDown"/>
  221.     </handlers>
  222.   </binding>
  223. </bindings>
  224.