42885: The other platforms define cut/copy/paste in their platform files (why?), so, sigh, do the same thing, for now. r=saari

git-svn-id: svn://10.0.0.236/trunk@74189 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
akkana%netscape.com
2000-07-13 22:21:42 +00:00
parent 956e3e05a8
commit bc856a5cb9
2 changed files with 46 additions and 2 deletions

View File

@@ -8,7 +8,29 @@
<!-- change the xul key for Unix -->
<keyset id="globalKeySet" xulkey="alt">
<!-- Add the Windows/Mac cut, copy, paste, undo and redo keys -->
<!-- Unix (alt=xulkey) cut, copy, paste, undo and redo keys -->
<key id="cutKey" key="x" xulkey="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_cut');
controller.doCommand('cmd_cut');"/>
<key id="copyKey" key="c" xulkey="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_copy');
controller.doCommand('cmd_copy');"/>
<key id="pasteKey" key="v" xulkey="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_paste');
controller.doCommand('cmd_paste');"/>
<key id="undoKey" key="z" xulkey="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_undo');
controller.doCommand('cmd_undo');"/>
<key id="redoKey" key="r" xulkey="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_redo');
controller.doCommand('cmd_redo');"/>
<!-- Add the Windows/Mac (control) cut, copy, paste, undo and redo keys -->
<key id="emCutKey" key="x" control="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_cut');

View File

@@ -8,7 +8,29 @@
<!-- change the xul key for Unix -->
<keyset id="globalKeySet" xulkey="alt">
<!-- Add the Windows/Mac cut, copy, paste, undo and redo keys -->
<!-- Unix (alt=xulkey) cut, copy, paste, undo and redo keys -->
<key id="cutKey" key="x" xulkey="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_cut');
controller.doCommand('cmd_cut');"/>
<key id="copyKey" key="c" xulkey="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_copy');
controller.doCommand('cmd_copy');"/>
<key id="pasteKey" key="v" xulkey="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_paste');
controller.doCommand('cmd_paste');"/>
<key id="undoKey" key="z" xulkey="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_undo');
controller.doCommand('cmd_undo');"/>
<key id="redoKey" key="r" xulkey="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_redo');
controller.doCommand('cmd_redo');"/>
<!-- Add the Windows/Mac (control) cut, copy, paste, undo and redo keys -->
<key id="emCutKey" key="x" control="true" shift="false"
onkeypress="
var controller = document.commandDispatcher.getControllerForCommand('cmd_cut');