<?xml version="1.0"?> 

<!DOCTYPE overlay SYSTEM "chrome://inspector/locale/editing.dtd">

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

  <commandset id="cmdsEditing">
    <command id="cmdEditUndo" oncommand="viewer.pane.panelset.undo();"/>
    <command id="cmdEditRedo" oncommand="viewer.pane.panelset.redo();"/>
    <command id="cmdEditCut" oncommand="viewer.pane.panelset.execCommand('cmdEditCut');"/>
    <command id="cmdEditCopy" oncommand="viewer.pane.panelset.execCommand('cmdEditCopy');"/>
    <command id="cmdEditPaste" oncommand="viewer.pane.panelset.execCommand('cmdEditPaste');"/>
    <command id="cmdEditInsert" oncommand="viewer.pane.panelset.execCommand('cmdEditInsert');"/>
    <command id="cmdEditEdit" oncommand="viewer.pane.panelset.execCommand('cmdEditEdit');"/>
    <command id="cmdEditDelete" oncommand="viewer.pane.panelset.execCommand('cmdEditDelete');"/>
  </commandset>
  
  <keyset id="ksGlobalKeyset">
    <key id="keyEditUndo" key="z" modifiers="accel" command="cmdEditUndo"/>
    <key id="keyEditRedo" key="y" modifiers="accel" command="cmdEditRedo"/>
    <key id="keyEditRedo2" key="z" modifiers="accel,shift" command="cmdEditRedo"/>
    <key id="keyEditCut" key="x" modifiers="accel" command="cmdEditCut"/>
    <key id="keyEditCopy" key="c" modifiers="accel" command="cmdEditCopy"/>
    <key id="keyEditPaste" key="v" modifiers="accel" command="cmdEditPaste"/>
    <key id="keyEditDelete" keycode="VK_DELETE" command="cmdEditDelete"/>
    <key id="keyEditDeleteMac" keycode="VK_BACK" command="cmdEditDelete"/>
  </keyset>

  <menuitem id="mnEditUndo" label="&mnEditUndo.label;" command="cmdEditUndo"
            accesskey="&mnEditUndo.accesskey;" key="keyEditUndo"/>
  <menuitem id="mnEditRedo" label="&mnEditRedo.label;" command="cmdEditRedo"
            accesskey="&mnEditRedo.accesskey;" key="keyEditRedo"/>
  <menuitem id="mnEditCut" label="&mnEditCut.label;" command="cmdEditCut"
            accesskey="&mnEditCut.accesskey;" key="keyEditCut"/>
  <menuitem id="mnEditCopy" label="&mnEditCopy.label;" command="cmdEditCopy"
            accesskey="&mnEditCopy.accesskey;" key="keyEditCopy"/>
  <menuitem id="mnEditPaste" label="&mnEditPaste.label;" command="cmdEditPaste"
            accesskey="&mnEditPaste.accesskey;" key="keyEditPaste"/>
  <menuitem id="mnEditInsert" label="&mnEditInsert.label;" command="cmdEditInsert"
            accesskey="&mnEditInsert.accesskey;"/>
  <menuitem id="mnEditEdit" label="&mnEditEdit.label;" command="cmdEditEdit"
            accesskey="&mnEditEdit.accesskey;"/>
  <menuitem id="mnEditDelete" label="&mnEditDelete.label;" command="cmdEditDelete"
            accesskey="&mnEditDelete.accesskey;" key="keyEditDelete"/>

</overlay>
