How to set the shortcut of an action outside of your own module?

Apache NetBeans Wiki Index

Note: These pages are being reviewed.

Register a shortcut at the "Shortcuts" folder in the layer.xml.

    <folder name="Shortcuts">
        <file name="C-8.shadow">
            <!--org.netbeans.modules.db.explorer.action.ExecuteCommandAction-->
            <attr name="originalFile" stringvalue="Actions/Database/org-netbeans-modules-db-explorer-action-ExecuteCommandAction.instance"/>
        </file>
    </folder>