Registration of an accelerator at extension installation

2015-06-24 Thread Amenel VOGLOZIN
Hi, Thanks to a recent post to this mailing list, I have been able to bind a shortcut key, a.k.a accelerator, to a command of my extension. However, I am facing the problem that the accelerator becomes active only when the main window of the extension is opened or put differently, when the

Re: need some help to Accelerators.xcu

2015-06-24 Thread Amenel VOGLOZIN
Oliver, I have followed your Basic code below and adapted it to Java and I can confirm that it works for the intended purpose of binding a shortcut key to an extension command. Thank you. De : Oliver Brinzing oliver.brinz...@gmx.de À : api@openoffice.apache.org Envoyé le : Mercredi

Re: Registration of an accelerator at extension installation

2015-06-24 Thread Oliver Brinzing
Hi Amenel, you can use an Accelerators.xcu file in you extension, for example: [...] node oor:name=LEFT_MOD1_MOD2 oor:op=replace prop oor:name=Command value xml:lang=en-USservice:my.extension.Service?myParam1/value /prop