... the user friendly GPS tool


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mac OS X - Tastaturkürzel / Keyboad Shortcuts
#7
I would prefer the way apple described here in this document.

https://developer.apple.com/library/mac/...001909-SW1

"Do not set menu item accelerators with an explicit javax.swing.KeyStroke specification. Modifier keys vary from platform to platform. Instead, use the java.awt.Tookit.getMenuShortcutKeyMask() method to ask the system for the appropriate key rather than defining it manually.

When calling this method, the current platform’s Toolkit implementation returns the proper mask. For example, in the case of adding a Copy item to a menu, using getMenuShortcutKeyMask means that you can replace the complexity of Listing 1 with the simplicity of Listing 2."
Reply


Messages In This Thread
RE: Mac OS X - Tastaturkürzel / Keyboad Shortcuts - by ryanthara - 12.11.2014, 13:07

Forum Jump:


Users browsing this thread: 2 Guest(s)