Julien Galand wrote:
Le 18 oct. 06, à 14:46, Carsten Driesner a écrit :
I think you should use the API to set your keyboard shortcut. Just
have a look the a the following code snippet how to do it:
http://codesnippets.services.openoffice.org/Office/Office.ManagingKeyboardShortcuts.snip
There are many examples on the code snippet page and you should take a
look, may be you can find other interesting things.
Thanks for this link.
I had tried this previously and it didn't work, but I think I have now
found the cause (there is apparently a bug in the C++ UNO binding about
the awt::KeyEvent structure, for which I have just posted a mail in this
mailing list), and I could make it work.
But the real question in my previous mail was to display the shortcut in
the menu line. The code snippet above doesn't change anything in the
menu added by the "transient change" method (I have set the same command
URL on the shortcut and the menu line, hoping that OO would associate
both automatically).
Is there a way to display for example "Ctrl+F12" on the right of a menu
line (and right-justified) ?
Hi Julien,
OpenOffice.org should display all associated keyboard shortcuts
automatically in the menu. If it doesn't work for your example, then I
guess that it's a bug. So could you write me a bug for this issue and
add a small example to reproduce it?
Regards,
Carsten
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]