2006-07-29 05:33:39 +00:00
|
|
|
<?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" xulkey="meta">
|
|
|
|
|
|
|
|
<!-- replace the Windows/Unix xul-Y Redo binding with xul-shift-Z -->
|
2006-07-29 05:35:27 +00:00
|
|
|
<key id="noWinRedo" key="y" cancel="true" modifiers="accel"/>
|
|
|
|
<key id="macRedokb" key="Z"
|
|
|
|
oncommand="
|
2006-07-29 05:33:39 +00:00
|
|
|
var controller = document.commandDispatcher.getControllerForCommand('cmd_redo');
|
2006-07-29 05:35:27 +00:00
|
|
|
controller.doCommand('cmd_redo');" modifiers="accel, shift"/>
|
2006-07-29 05:33:39 +00:00
|
|
|
|
|
|
|
<!-- Mac bindings for home and end -->
|
2006-07-29 05:35:27 +00:00
|
|
|
<key id="macHomekb" keycode="VK_HOME"
|
|
|
|
oncommand="
|
2006-07-29 05:33:39 +00:00
|
|
|
var controller = document.commandDispatcher.getControllerForCommand('cmd_scrollTop');
|
|
|
|
controller.doCommand('cmd_scrollTop');"/>
|
2006-07-29 05:35:27 +00:00
|
|
|
<key id="macEndkb" keycode="VK_END"
|
|
|
|
oncommand="
|
2006-07-29 05:33:39 +00:00
|
|
|
var controller = document.commandDispatcher.getControllerForCommand('cmd_scrollBottom');
|
|
|
|
controller.doCommand('cmd_scrollBottom');"/>
|
|
|
|
|
2006-07-29 05:35:13 +00:00
|
|
|
<!-- 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) -->
|
|
|
|
|
2006-07-29 05:35:27 +00:00
|
|
|
<key id="key_leftcontrol" keycode="VK_LEFT"
|
|
|
|
oncommand="
|
2006-07-29 05:33:39 +00:00
|
|
|
var controller = document.commandDispatcher.getControllerForCommand('cmd_wordPrevious');
|
2006-07-29 05:36:13 +00:00
|
|
|
controller.doCommand('cmd_wordPrevious');" modifiers="alt"/>
|
2006-07-29 05:35:27 +00:00
|
|
|
<key id="key_rightcontrol" keycode="VK_RIGHT"
|
|
|
|
oncommand="
|
2006-07-29 05:33:39 +00:00
|
|
|
var controller = document.commandDispatcher.getControllerForCommand('cmd_wordNext');
|
2006-07-29 05:36:13 +00:00
|
|
|
controller.doCommand('cmd_wordNext');" modifiers="alt"/>
|
2006-07-29 05:35:27 +00:00
|
|
|
<key id="key_leftshiftcontrol" keycode="VK_LEFT"
|
|
|
|
oncommand="
|
2006-07-29 05:33:39 +00:00
|
|
|
var controller = document.commandDispatcher.getControllerForCommand('cmd_selectWordPrevious');
|
2006-07-29 05:36:13 +00:00
|
|
|
controller.doCommand('cmd_selectWordPrevious');" modifiers="shift, alt"/>
|
2006-07-29 05:35:27 +00:00
|
|
|
<key id="key_rightshiftcontrol" keycode="VK_RIGHT"
|
|
|
|
oncommand="
|
2006-07-29 05:33:39 +00:00
|
|
|
var controller = document.commandDispatcher.getControllerForCommand('cmd_selectWordNext');
|
2006-07-29 05:36:13 +00:00
|
|
|
controller.doCommand('cmd_selectWordNext');" modifiers="shift, alt"/>
|
2006-07-29 05:35:13 +00:00
|
|
|
|
2006-07-29 05:33:39 +00:00
|
|
|
</keyset>
|
|
|
|
<!-- End Mac-specific key bindings -->
|
|
|
|
|
|
|
|
</keybinding>
|
|
|
|
|