How do you refer to the mac command key in the String version of Java's KeyStroke.getKeystroke?
问题 The documentation for KeyStroke.getKeystroke(String) (e.g., getKeyStroke("control DELETE") ) does not provide an example of how to access the macintosh command key, and I can't find a reference that lists the spellings of the various words for modifiers like "control" that this function accepts. What is the syntax for the command key? For reference, here's the documentation for getKeystroke: Parses a string and returns a KeyStroke . The string must have the following syntax: <modifiers>* (