PDA

View Full Version : Menu shortcuts



ashgull80
12-02-2014, 07:10 AM
Hi
I have a custom menu in my workbook created bu UI Editor.
my question is can I add a keyboard shortcut to one of these tabs?
thank you ash

Aflatoon
12-02-2014, 07:51 AM
Yes - use the keytip attribute for the tab.

ashgull80
12-02-2014, 08:08 AM
I'm sorry I'm quite a novice at this can you explain in more detail?
thank you for your reply

Aflatoon
12-02-2014, 08:28 AM
In your CustomUI part, you need to add the keytip attribute:

<tab id="tabid_1" label="SampleTab" keytip="q">
for instance

ashgull80
12-02-2014, 08:49 AM
And then what would be the short cut to operate this?

Aflatoon
12-02-2014, 08:55 AM
Alt+q (or whatever key you put in there)

ashgull80
12-02-2014, 11:27 AM
my code looks like this but still doesnot work

<button id="customButton33" label="Misc Expend" keytip="e"
onAction="MacroAddExpend" imageMso="RecordsAddFromOutlook" />

Aflatoon
12-03-2014, 01:10 AM
For a button rather than tab, you need Alt plus the tab shortcut, then the button shortcut.

You can also simply create a macro, assign a shortcut key to it as normal and then call that macro directly from your menu callback.