Files
Mozilla/mozilla/xpfe/global/resources/content/mac/platformInputBindings.xul
mjudge%netscape.com ba88a6145d adding more = false lines to xul files and the XBL. bugs=25462,25730 hyatt
git-svn-id: svn://10.0.0.236/trunk@60347 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-11 00:53:01 +00:00

49 lines
2.0 KiB
XML

<?xml version="1.0"?>
<!-- mac version of platformInputBindings.xul -->
<keybinding id="platformInputBindings"
xmlns:html="http://www.w3.org/TR/REC-html40"
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 -->
<key id="noWinRedo" key="y" xulkey="true" shift="false" control="false" alt="false" cancel="true"/>
<key id="macRedokb" key="Z" xulkey="true" shift="true" control="false" alt="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_redo');
controller.doCommand('cmd_redo');"/>
<!-- In single-line text fields, ignore the xp bindings for home and end -->
<key id="macHomekb" keycode="VK_HOME" shift="false" control="false" alt="false" cancel="true" />
<key id="macEndkb" keycode="VK_END" shift="false" control="false" alt="false" cancel="true" />
<!-- and make up and down arrows do those functions -->
<key id="key_up" keycode="VK_UP" control="false" alt="false" shift="false"
onkeypress="
var controller =
document.commandDispatcher.getControllerForCommand('cmd_beginLine');
controller.doCommand('cmd_beginLine');"/>
<key id="key_down" keycode="VK_DOWN" shift="false" control="false" alt="false"
onkeypress="
var controller =
document.commandDispatcher.getControllerForCommand('cmd_endLine');
controller.doCommand('cmd_endLine');"/>
<key id="key_up" keycode="VK_UP" shift="true" control="false" alt="false"
onkeypress="
var controller =
document.commandDispatcher.getControllerForCommand('cmd_beginLine');
controller.doCommand('cmd_selectBeginLine');"/>
<key id="key_down" keycode="VK_DOWN" shift="true" control="false" alt="false"
onkeypress="
var controller =
document.commandDispatcher.getControllerForCommand('cmd_endLine');
controller.doCommand('cmd_selectEndLine');"/>
</keyset>
<!-- End Mac-specific key bindings -->
</keybinding>