1 <?xml version=
"1.0"?> <!-- -*- Mode: HTML -*- -->
2 <?xml-stylesheet href=
"chrome://global/skin/" type=
"text/css"?>
4 <!DOCTYPE overlay SYSTEM
"chrome://global/locale/editMenuOverlay.dtd">
6 <overlay id=
"editMenuOverlay"
7 xmlns=
"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
9 <script type=
"application/javascript" src=
"chrome://global/content/editMenuOverlay.js"/>
11 <commandset id=
"editMenuCommands">
12 <commandset id=
"editMenuCommandSetAll" commandupdater=
"true" events=
"focus,select"
13 oncommandupdate=
"goUpdateGlobalEditMenuItems()"/>
14 <commandset id=
"editMenuCommandSetUndo" commandupdater=
"true" events=
"undo"
15 oncommandupdate=
"goUpdateUndoEditMenuItems()"/>
16 <commandset id=
"editMenuCommandSetPaste" commandupdater=
"true" events=
"clipboard"
17 oncommandupdate=
"goUpdatePasteMenuItems()"/>
18 <command id=
"cmd_undo" oncommand=
"goDoCommand('cmd_undo')"/>
19 <command id=
"cmd_redo" oncommand=
"goDoCommand('cmd_redo')"/>
20 <command id=
"cmd_cut" oncommand=
"goDoCommand('cmd_cut')"/>
21 <command id=
"cmd_copy" oncommand=
"goDoCommand('cmd_copy')"/>
22 <command id=
"cmd_paste" oncommand=
"goDoCommand('cmd_paste')"/>
23 <command id=
"cmd_delete" oncommand=
"goDoCommand('cmd_delete')"/>
24 <command id=
"cmd_selectAll" oncommand=
"goDoCommand('cmd_selectAll')"/>
25 <command id=
"cmd_switchTextDirection" oncommand=
"goDoCommand('cmd_switchTextDirection');"/>
28 <!-- These key nodes are here only for show. The real bindings come from
29 XBL, in platformHTMLBindings.xml. See bugs 57078 and 71779. -->
31 <keyset id=
"editMenuKeys">
32 <key id=
"key_undo" key=
"&undoCmd.key;" modifiers=
"accel" command=
"cmd_undo"/>
34 <key id=
"key_redo" key=
"&undoCmd.key;" modifiers=
"accel,shift" command=
"cmd_redo"/>
36 <key id=
"key_redo" key=
"&redoCmd.key;" modifiers=
"accel" command=
"cmd_redo"/>
38 <key id=
"key_cut" key=
"&cutCmd.key;" modifiers=
"accel" command=
"cmd_cut"/>
39 <key id=
"key_copy" key=
"©Cmd.key;" modifiers=
"accel" command=
"cmd_copy"/>
40 <key id=
"key_paste" key=
"&pasteCmd.key;" modifiers=
"accel" command=
"cmd_paste"/>
41 <key id=
"key_delete" keycode=
"VK_DELETE" command=
"cmd_delete"/>
42 <key id=
"key_selectAll" key=
"&selectAllCmd.key;" modifiers=
"accel" command=
"cmd_selectAll"/>
43 <key id=
"key_find" key=
"&findCmd.key;" modifiers=
"accel" command=
"cmd_find"/>
44 <key id=
"key_findAgain" key=
"&findAgainCmd.key;" modifiers=
"accel" command=
"cmd_findAgain"/>
45 <key id=
"key_findPrevious" key=
"&findAgainCmd.key;" modifiers=
"shift,accel" command=
"cmd_findPrevious"/>
46 <key id=
"key_findAgain2" keycode=
"&findAgainCmd.key2;" command=
"cmd_findAgain"/>
47 <key id=
"key_findPrevious2" keycode=
"&findAgainCmd.key2;" modifiers=
"shift" command=
"cmd_findPrevious"/>
51 <menu id=
"menu_edit" label=
"&editMenu.label;"
52 accesskey=
"&editMenu.accesskey;"/>
54 <menuitem id=
"menu_undo" label=
"&undoCmd.label;"
55 key=
"key_undo" accesskey=
"&undoCmd.accesskey;"
57 <menuitem id=
"menu_redo" label=
"&redoCmd.label;"
58 key=
"key_redo" accesskey=
"&redoCmd.accesskey;"
60 <menuitem id=
"menu_cut" label=
"&cutCmd.label;"
61 key=
"key_cut" accesskey=
"&cutCmd.accesskey;"
63 <menuitem id=
"menu_copy" label=
"©Cmd.label;"
64 key=
"key_copy" accesskey=
"©Cmd.accesskey;"
66 <menuitem id=
"menu_paste" label=
"&pasteCmd.label;"
67 key=
"key_paste" accesskey=
"&pasteCmd.accesskey;"
69 <menuitem id=
"menu_delete" label=
"&deleteCmd.label;"
70 key=
"key_delete" accesskey=
"&deleteCmd.accesskey;"
71 command=
"cmd_delete"/>
72 <menuitem id=
"menu_selectAll" label=
"&selectAllCmd.label;"
73 key=
"key_selectAll" accesskey=
"&selectAllCmd.accesskey;"
74 command=
"cmd_selectAll"/>
75 <menuitem id=
"menu_find" label=
"&findCmd.label;"
76 key=
"key_find" accesskey=
"&findCmd.accesskey;"
78 <menuitem id=
"menu_findAgain" label=
"&findAgainCmd.label;"
79 key=
"key_findAgain" accesskey=
"&findAgainCmd.accesskey;"
80 command=
"cmd_findAgain"/>
81 <menuitem id=
"menu_findPrevious" label=
"&findPreviousCmd.label;"
82 key=
"key_findPrevious" accesskey=
"&findPreviousCmd.accesskey;"
83 command=
"cmd_findPrevious"/>
85 <menuitem id=
"cMenu_undo" label=
"&undoCmd.label;"
86 accesskey=
"&undoCmd.accesskey;" command=
"cmd_undo"/>
87 <menuitem id=
"cMenu_redo" label=
"&redoCmd.label;"
88 accesskey=
"&redoCmd.accesskey;" command=
"cmd_redo"/>
89 <menuitem id=
"cMenu_cut" label=
"&cutCmd.label;"
90 accesskey=
"&cutCmd.accesskey;" command=
"cmd_cut"/>
91 <menuitem id=
"cMenu_copy" label=
"©Cmd.label;"
92 accesskey=
"©Cmd.accesskey;" command=
"cmd_copy"/>
93 <menuitem id=
"cMenu_paste" label=
"&pasteCmd.label;"
94 accesskey=
"&pasteCmd.accesskey;" command=
"cmd_paste"/>
95 <menuitem id=
"cMenu_delete" label=
"&deleteCmd.label;"
96 accesskey=
"&deleteCmd.accesskey;" command=
"cmd_delete"/>
97 <menuitem id=
"cMenu_selectAll" label=
"&selectAllCmd.label;"
98 accesskey=
"&selectAllCmd.accesskey;" command=
"cmd_selectAll"/>
99 <menuitem id=
"cMenu_find" label=
"&findCmd.label;"
100 accesskey=
"&findCmd.accesskey;" command=
"cmd_find"/>
101 <menuitem id=
"cMenu_findAgain" label=
"&findAgainCmd.label;"
102 accesskey=
"&findAgainCmd.accesskey;" command=
"cmd_findAgain"/>
103 <menuitem id=
"cMenu_findPrevious" label=
"&findPreviousCmd.label;"
104 accesskey=
"&findPreviousCmd.accesskey;" command=
"cmd_findPrevious"/>