home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / phoenx05.zip / phoenix / res / builtin / htmlBindings.xml next >
Extensible Markup Language  |  2002-12-10  |  6KB  |  126 lines

  1. <?xml version="1.0"?>
  2.  
  3. <!--
  4. Can't yet put script tags in XBL (hyatt has the bug)
  5.   <script type="application/x-javascript" src="chrome://embed/content/nsTransferable.js"/>
  6.   <script type="application/x-javascript" src="chrome://embed/content/nsClipboard.js"/>
  7.   <script type="application/x-javascript" src="chrome://embed/content/nsDragAndDrop.js"/>
  8. -->
  9.  
  10. <bindings id="htmlBindings"
  11.    xmlns="http://www.mozilla.org/xbl"
  12.    xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  13.  
  14.   <binding id="browserBase">
  15.     <handlers>
  16.  
  17.       <handler event="draggesture">
  18. <!--
  19.          nsDragAndDrop.startDrag(event, contentAreaDNDObserver);
  20. -->
  21.       </handler>
  22.       <handler event="dragover">
  23. <!--
  24.          nsDragAndDrop.dragOver(event, contentAreaDNDObserver);
  25. -->
  26.       </handler>
  27.       <handler event="dragdrop">
  28. <!--
  29.          nsDragAndDrop.drop(event, contentAreaDNDObserver);
  30. -->
  31.       </handler>
  32.  
  33.       <handler event="keypress" key=" " modifiers="shift" command="cmd_scrollPageUp" />
  34.       <handler event="keypress" key=" " command="cmd_scrollPageDown" />
  35.  
  36.       <handler event="keypress" keycode="VK_UP" command="cmd_scrollLineUp" />
  37.       <handler event="keypress" keycode="VK_DOWN" command="cmd_scrollLineDown" />
  38.       <handler event="keypress" keycode="VK_LEFT" command="cmd_scrollLeft" />
  39.       <handler event="keypress" keycode="VK_RIGHT" command="cmd_scrollRight" />
  40.  
  41.       <handler event="keypress" keycode="VK_HOME" command="cmd_scrollTop"/>
  42.       <handler event="keypress" keycode="VK_END" command="cmd_scrollBottom"/>
  43.  
  44.       <handler event="keypress" key="x" command="cmd_cut" modifiers="accel"/>
  45.       <handler event="keypress" key="c" command="cmd_copy" modifiers="accel"/>
  46.       <handler event="keypress" key="v" command="cmd_paste" modifiers="accel"/>
  47.       <handler event="keypress" key="z" command="cmd_undo" modifiers="accel"/>
  48.       <handler event="keypress" key="z" command="cmd_redo" modifiers="accel,shift" />
  49.       <handler event="keypress" key="a" command="cmd_selectAll" modifiers="accel"/>
  50.     </handlers>
  51.   </binding>
  52.  
  53.   <binding id="editorBase">
  54.     <handlers>
  55.       <handler event="keypress" keycode="VK_LEFT" command="cmd_charPrevious"/>
  56.       <handler event="keypress" keycode="VK_RIGHT" command="cmd_charNext"/>
  57.       <handler event="keypress" keycode="VK_LEFT" command="cmd_selectCharPrevious" modifiers="shift"/>
  58.       <handler event="keypress" keycode="VK_RIGHT" command="cmd_selectCharNext" modifiers="shift"/>
  59.       <handler event="keypress" keycode="VK_UP" command="cmd_linePrevious"/>
  60.       <handler event="keypress" keycode="VK_DOWN" command="cmd_lineNext"/>
  61.       <handler event="keypress" keycode="VK_UP" command="cmd_selectLinePrevious" modifiers="shift"/>
  62.       <handler event="keypress" keycode="VK_DOWN" command="cmd_selectLineNext" modifiers="shift"/>
  63.       <handler event="keypress" key="z" command="cmd_undo" modifiers="accel"/>
  64.       <handler event="keypress" key="z" command="cmd_redo" modifiers="accel,shift" />
  65.       <handler event="keypress" key="x" command="cmd_cut" modifiers="accel"/>
  66.       <handler event="keypress" key="c" command="cmd_copy" modifiers="accel"/>
  67.       <handler event="keypress" key="v" command="cmd_paste" modifiers="accel"/>
  68.       <handler event="keypress" key="a" command="cmd_selectAll" modifiers="accel"/>
  69.  
  70.     </handlers>
  71.  
  72.   </binding>
  73.  
  74.  
  75.  
  76.  
  77.   <binding id="inputFieldsBase">
  78.     <handlers>
  79.     <handler event="keypress" keycode="VK_LEFT" command="cmd_charPrevious"/>
  80.     <handler event="keypress" keycode="VK_RIGHT" command="cmd_charNext"/>
  81.     <handler event="keypress" keycode="VK_LEFT" modifiers="shift"
  82.         command="cmd_selectCharPrevious"/>
  83.     <handler event="keypress" keycode="VK_RIGHT" modifiers="shift"
  84.         command="cmd_selectCharNext"/>
  85.  
  86.     <!-- Cut/copy/paste/undo -->
  87.     <handler event="keypress" key="c" modifiers="accel" command="cmd_copy"/>
  88.     <handler event="keypress" key="x" modifiers="accel" command="cmd_cut"/>
  89.     <handler event="keypress" key="v" modifiers="accel" command="cmd_paste"/>
  90.     <handler event="keypress" key="z" command="cmd_redo" modifiers="accel,shift" />
  91.     <handler event="keypress" key="z" modifiers="accel" command="cmd_undo"/>
  92.     <handler event="keypress" key="a" modifiers="accel" command="cmd_selectAll"/>
  93.  
  94.     </handlers>
  95.   </binding>
  96.  
  97.   <binding id="textAreasBase">
  98.     <handlers>
  99.  
  100.     <handler event="keypress" keycode="VK_LEFT" command="cmd_charPrevious"/>
  101.     <handler event="keypress" keycode="VK_RIGHT" command="cmd_charNext"/>
  102.     <handler event="keypress" keycode="VK_LEFT" modifiers="shift"
  103.         command="cmd_selectCharPrevious"/>
  104.     <handler event="keypress" keycode="VK_RIGHT" modifiers="shift"
  105.         command="cmd_selectCharNext"/>
  106.     <handler event="keypress" keycode="VK_UP" command="cmd_linePrevious"/>
  107.     <handler event="keypress" keycode="VK_DOWN" command="cmd_lineNext"/>
  108.     <handler event="keypress" keycode="VK_UP" modifiers="shift"
  109.         command="cmd_selectLinePrevious"/>
  110.     <handler event="keypress" keycode="VK_DOWN" modifiers="shift"
  111.         command="cmd_selectLineNext"/>
  112.  
  113.     <!-- Cut/copy/paste/undo -->
  114.     <handler event="keypress" key="c" modifiers="accel" command="cmd_copy"/>
  115.     <handler event="keypress" key="x" modifiers="accel" command="cmd_cut"/>
  116.     <handler event="keypress" key="v" modifiers="accel" command="cmd_paste"/>
  117.     <handler event="keypress" key="z" modifiers="accel" command="cmd_undo"/>
  118.     <handler event="keypress" key="z" command="cmd_redo" modifiers="accel,shift" />
  119.     <handler event="keypress" key="a" modifiers="accel" command="cmd_selectAll"/>
  120.  
  121.     </handlers>
  122.   </binding>
  123.  
  124.  
  125. </bindings>
  126.