home *** CD-ROM | disk | FTP | other *** search
/ ftp.swcp.com / ftp.swcp.com.zip / ftp.swcp.com / mac / mozilla-macos9-1.3.1.sea.bin / Mozilla1.3.1 / res / builtin / htmlBindings.xml next >
Extensible Markup Language  |  2003-06-08  |  6KB  |  129 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.  
  51.       <handler event="keypress" key="/" command="cmd_findTypeText"/>
  52.       <handler event="keypress" key="'" command="cmd_findTypeLinks"/>
  53.     </handlers>
  54.   </binding>
  55.  
  56.   <binding id="editorBase">
  57.     <handlers>
  58.       <handler event="keypress" keycode="VK_LEFT" command="cmd_charPrevious"/>
  59.       <handler event="keypress" keycode="VK_RIGHT" command="cmd_charNext"/>
  60.       <handler event="keypress" keycode="VK_LEFT" command="cmd_selectCharPrevious" modifiers="shift"/>
  61.       <handler event="keypress" keycode="VK_RIGHT" command="cmd_selectCharNext" modifiers="shift"/>
  62.       <handler event="keypress" keycode="VK_UP" command="cmd_linePrevious"/>
  63.       <handler event="keypress" keycode="VK_DOWN" command="cmd_lineNext"/>
  64.       <handler event="keypress" keycode="VK_UP" command="cmd_selectLinePrevious" modifiers="shift"/>
  65.       <handler event="keypress" keycode="VK_DOWN" command="cmd_selectLineNext" modifiers="shift"/>
  66.       <handler event="keypress" key="z" command="cmd_undo" modifiers="accel"/>
  67.       <handler event="keypress" key="z" command="cmd_redo" modifiers="accel,shift" />
  68.       <handler event="keypress" key="x" command="cmd_cut" modifiers="accel"/>
  69.       <handler event="keypress" key="c" command="cmd_copy" modifiers="accel"/>
  70.       <handler event="keypress" key="v" command="cmd_paste" modifiers="accel"/>
  71.       <handler event="keypress" key="a" command="cmd_selectAll" modifiers="accel"/>
  72.  
  73.     </handlers>
  74.  
  75.   </binding>
  76.  
  77.  
  78.  
  79.  
  80.   <binding id="inputFieldsBase">
  81.     <handlers>
  82.     <handler event="keypress" keycode="VK_LEFT" command="cmd_charPrevious"/>
  83.     <handler event="keypress" keycode="VK_RIGHT" command="cmd_charNext"/>
  84.     <handler event="keypress" keycode="VK_LEFT" modifiers="shift"
  85.         command="cmd_selectCharPrevious"/>
  86.     <handler event="keypress" keycode="VK_RIGHT" modifiers="shift"
  87.         command="cmd_selectCharNext"/>
  88.  
  89.     <!-- Cut/copy/paste/undo -->
  90.     <handler event="keypress" key="c" modifiers="accel" command="cmd_copy"/>
  91.     <handler event="keypress" key="x" modifiers="accel" command="cmd_cut"/>
  92.     <handler event="keypress" key="v" modifiers="accel" command="cmd_paste"/>
  93.     <handler event="keypress" key="z" command="cmd_redo" modifiers="accel,shift" />
  94.     <handler event="keypress" key="z" modifiers="accel" command="cmd_undo"/>
  95.     <handler event="keypress" key="a" modifiers="accel" command="cmd_selectAll"/>
  96.  
  97.     </handlers>
  98.   </binding>
  99.  
  100.   <binding id="textAreasBase">
  101.     <handlers>
  102.  
  103.     <handler event="keypress" keycode="VK_LEFT" command="cmd_charPrevious"/>
  104.     <handler event="keypress" keycode="VK_RIGHT" command="cmd_charNext"/>
  105.     <handler event="keypress" keycode="VK_LEFT" modifiers="shift"
  106.         command="cmd_selectCharPrevious"/>
  107.     <handler event="keypress" keycode="VK_RIGHT" modifiers="shift"
  108.         command="cmd_selectCharNext"/>
  109.     <handler event="keypress" keycode="VK_UP" command="cmd_linePrevious"/>
  110.     <handler event="keypress" keycode="VK_DOWN" command="cmd_lineNext"/>
  111.     <handler event="keypress" keycode="VK_UP" modifiers="shift"
  112.         command="cmd_selectLinePrevious"/>
  113.     <handler event="keypress" keycode="VK_DOWN" modifiers="shift"
  114.         command="cmd_selectLineNext"/>
  115.  
  116.     <!-- Cut/copy/paste/undo -->
  117.     <handler event="keypress" key="c" modifiers="accel" command="cmd_copy"/>
  118.     <handler event="keypress" key="x" modifiers="accel" command="cmd_cut"/>
  119.     <handler event="keypress" key="v" modifiers="accel" command="cmd_paste"/>
  120.     <handler event="keypress" key="z" modifiers="accel" command="cmd_undo"/>
  121.     <handler event="keypress" key="z" command="cmd_redo" modifiers="accel,shift" />
  122.     <handler event="keypress" key="a" modifiers="accel" command="cmd_selectAll"/>
  123.  
  124.     </handlers>
  125.   </binding>
  126.  
  127.  
  128. </bindings>
  129.