Re: handling command / control keys

Tristan Richard <[email protected]>
Newsgroups gmane.comp.embedded.carlsbad-cubes
Message-ID <[email protected]>
I quite agree with you, we should have the equivalent of the java code :

//Cross platform ctrl key mask
int ctrl = Toolkit.getDefaultToolkit().getMenuShortcutKeyMask();

Which means control key on Win/Linux and Meta on Mac...

I vote for this feature request too

Tristan

masukomi a écrit :

> I've set up my accelerators in the XML with control keys (^+n = new, 
> etc) but that's damn annoying on the mac. Is there some simple thing I'm 
> missing that will allow me to set the right one without having to write 
> a class / function to read in my menus and convert all the controls to 
> commands if the person happens to be on a mac?
> 
> If not.... would it be useful to have that as a potential switch that 
> could be added? For example before calling SwingEngine.render(...) you 
> set some flag that then tells the Parser to make sure the menu 
> accellerators are the appropriate ones for the os. Event.CTRL_MASK 
> becomes Event.META_MASK if you're on a mac and vice-versa if you're not.
> 
> 
> -Kate
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Forum mailing list
> [email protected]
> http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.