Re: Programatically activate menu like a mouse click

2017-02-24 Thread John Lane
On 23/02/17 21:02, Colomban Wendling wrote: > > Sounds odd to do that manually. Do you know about mnemonic keys? > Basically if you mark some part of the label to be the mnemonic letter, > you'll be able to trigger that element with Alt+letter. > > Additionally, F10 already pops up the first

Re: Programatically activate menu like a mouse click

2017-02-24 Thread John Lane
> Give this a try. It might be close to what you are after. Thanks Eric. That works, however it is slightly different to what I need. Firstly, my app is a dock containing nothing but a menu bar, so it has no "window" as such. Secondly, its key binding only works when its window has the focus.

Re: Programatically activate menu like a mouse click

2017-02-24 Thread Colomban Wendling
Le 24/02/2017 à 10:24, John Lane a écrit : > On 23/02/17 21:02, Colomban Wendling wrote: > >> >> Sounds odd to do that manually. Do you know about mnemonic keys? >> Basically if you mark some part of the label to be the mnemonic letter, >> you'll be able to trigger that element with Alt+letter.