This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Apple Command Key

 
Pres Brawner
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anybody know how to detect if this gets pushed. I've looked in KeyEvent, and it is not a KeyEvent that I know.
What I have written works well in WinOs with mnemonics, but I've received complaints. Control X is not what users expect to use when closing a Mac application. They want to use Open Apple X, (also known as "flower x" or Apple Command Key and X.
Thanks in advance.
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

i am a little as to what you are asking?
is it mnemonic or accelarator that you have a problem with?
mnemonic, as I understand, are driven by the meta key (Command
key in MacOS) and that too from an open menu.
could you please clarify.
- satya
 
Tony Gee
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Apple command ("flower") key should generated a KeyEvent.VK_META keycode. Also, to check whether or not a key combination has been pressed with the command key, check KeyEvent's getModifiers() for the KeyEvent.META_MASK.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic