DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Mercurial (0ddcbf234291)

VCS Links

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
<?xml version="1.0"?> 
<!-- mac version of platformEditorBindings.xul -->

<keybinding id="platformEditorBindings"
	 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

<!-- Mac-specific key bindings -->
<keyset id="editorKeySet">

<!-- replace the Windows/Unix xul-Y Redo binding with xul-shift-Z -->
<key id="noWinRedo" key="y"   cancel="true" modifiers="accel"/>
<key id="macRedokb" key="Z"   
  oncommand="
    var controller = document.commandDispatcher.getControllerForCommand('cmd_redo');
    controller.doCommand('cmd_redo');" modifiers="accel, shift"/>

<!-- Mac bindings for home and end -->
<key id="macHomekb" keycode="VK_HOME"   
   oncommand="
     var controller = document.commandDispatcher.getControllerForCommand('cmd_scrollTop');
     controller.doCommand('cmd_scrollTop');"/>
<key id="macEndkb" keycode="VK_END"   
   oncommand="
     var controller = document.commandDispatcher.getControllerForCommand('cmd_scrollBottom');
     controller.doCommand('cmd_scrollBottom');"/>

<!-- Command-left/right arrow won't work on Macintosh non-Roman scripts systems since they are
     reserved for keyboard layout in the OS (source: Macintosh Human Interface Guidelines) -->

<key id="key_leftcontrol" keycode="VK_LEFT"    
    oncommand="
      var controller = document.commandDispatcher.getControllerForCommand('cmd_wordPrevious');
      controller.doCommand('cmd_wordPrevious');" modifiers="alt"/>
<key id="key_rightcontrol" keycode="VK_RIGHT"    
    oncommand="
      var controller = document.commandDispatcher.getControllerForCommand('cmd_wordNext');
      controller.doCommand('cmd_wordNext');" modifiers="alt"/>
<key id="key_leftshiftcontrol" keycode="VK_LEFT"    
    oncommand="
      var controller = document.commandDispatcher.getControllerForCommand('cmd_selectWordPrevious');
      controller.doCommand('cmd_selectWordPrevious');" modifiers="shift, alt"/>
<key id="key_rightshiftcontrol" keycode="VK_RIGHT"    
    oncommand="
      var controller = document.commandDispatcher.getControllerForCommand('cmd_selectWordNext');
      controller.doCommand('cmd_selectWordNext');" modifiers="shift, alt"/>

</keyset>
<!-- End Mac-specific key bindings -->

</keybinding>