TextArea: Accelerators do not work correctly on Mac OS
Brought to you by:
lauerc
fix:
1. Add a static variable:
public static final int MASK =
System.getProperty("mrj.version") == null
? KeyEvent.ALT_MASK : KeyEvent.META_MASK;
2. in the method processKeyEvent, change the line
if (c != KeyEvent.CHAR_UNDEFINED && (modifiers &
KeyEvent.ALT_MASK) == 0) {
to
if (c != KeyEvent.CHAR_UNDEFINED && (modifiers & MASK)
== 0) {