Hi,
in my extension I have an .xcu file (beginning of file see below). How
can I assign a keyboard shortcut to a menu item (e.g. node
"010:edit:change")? The schema only offers to put an icon in the
beginning of the menu line. But many LO menus have a shortcut defined at
the end of the menu line, e.g. F1 for help.
Thanks,
Jan
<?xml version='1.0' encoding='UTF-8'?>
<oor:component-data xmlns:oor="http://openoffice.org/2001/registry"
xmlns:xs="http://www.w3.org/2001/XMLSchema" oor:name="Addons"
oor:package="org.openoffice.Office">
<node oor:name="AddonUI">
<node oor:name="OfficeMenuBar">
<node oor:name="de.gmx.rheinlaender.jan.imath" oor:op="replace">
<prop oor:name="Title" oor:type="xs:string">
<value xml:lang="de">iMath</value>
<value xml:lang="en-US">iMath</value>
</prop>
<prop oor:name="Context" oor:type="xs:string">
<value>com.sun.star.text.TextDocument,com.sun.star.text.GlobalDocument</value>
</prop>
<prop oor:name="ImageIdentifier" oor:type="xs:string">
<value/>
</prop>
<node oor:name="Submenu">
<node oor:name="010:edit" oor:op="replace">
<prop oor:name="URL" oor:type="xs:string">
<value/>
</prop>
<prop oor:name="ImageIdentifier" oor:type="xs:string">
<value/>
</prop>
<prop oor:name="Title" oor:type="xs:string">
<value xml:lang="de">Bearbeiten</value>
<value xml:lang="en-US">Edit</value>
</prop>
<prop oor:name="Target" oor:type="xs:string">
<value>_self</value>
</prop>
<node oor:name="Submenu">
<node oor:name="010:edit:change" oor:op="replace">
<prop oor:name="URL" oor:type="xs:string">
<value>de.gmx.rheinlaender.jan.imath:edit:edit</value>
</prop>
<prop oor:name="ImageIdentifier" oor:type="xs:string">
<value/>
</prop>
<prop oor:name="Title" oor:type="xs:string">
<value xml:lang="de">Bearbeiten</value>
<value xml:lang="en-US">Edit</value>
</prop>
<prop oor:name="Target" oor:type="xs:string">
<value>_self</value>
</prop>
</node>
Context
- Extension: Keyboard shortcut for menu item · Jan Rheinländer
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.