Re: Checking SHIFT/CTRL/ALT hold in C++ xpcom

YuLo <[email protected]> Sat, 19 Oct 2013 10:44:45 -0700 (PDT)
Newsgroups gmane.comp.mozilla.devel.xpfe
Message-ID <[email protected]>
> I think that in this case the event will contain the modifiers if the 
> 
> button is clicked with the mouse (which is the usual case for 
> 
> toolbarbuttons but not necessarily for other XUL elements).
> 
> 
> 
> So you could write oncommand="if (event.ctrlKey) test();"
> 
> 
> 
> -- 
> 
> Warning: May contain traces of nuts.

Thank you Neil, again.
It works!
I supposed there is some XPCOM object which can say about keyboard state.
I tried to find it but unsuccessfully.
I thought to use it deep nested c++ functions.
Passing event object not convenient.
Your method solved the problem so far.