I am using KeyEvents and
KeyEvent.getKeyText(KeyEvent.VK_...)
in order to get the text corresponding to the KeyEvent.
In OSX (Lion) when I request the text for a special key, like TAB or ENTER (KeyEvent.VK_ENTER) I get the corresponding symbol (e.g. for Enter, I get the curved arrow). The same in a Windows XP system gives me the key name (e.g. “Enter”) instead of the symbol.
Is there a solution to get the special characters in XP, too?
MAC have different implementation:
In that case, you can use the constants for that keys,
VK_ENTER, e.g.Or you can map the keys to its string names with
Map