Mac OS X: Mapped the option key to Keyboard.KEY_LWIN and Keyboard.KEY_RWIN instead of KEY_*META like the alt key
This commit is contained in:
parent
524702ee0d
commit
473eb61c60
|
@ -329,11 +329,15 @@ final class KeyboardEventQueue extends EventQueue implements KeyListener {
|
|||
// manually map positioned keys
|
||||
switch (key_code) {
|
||||
case KeyEvent.VK_ALT: // fall through
|
||||
case KeyEvent.VK_META:
|
||||
if (position == KeyEvent.KEY_LOCATION_RIGHT)
|
||||
return Keyboard.KEY_RMENU;
|
||||
else
|
||||
return Keyboard.KEY_LMENU;
|
||||
case KeyEvent.VK_META:
|
||||
if (position == KeyEvent.KEY_LOCATION_RIGHT)
|
||||
return Keyboard.KEY_RWIN;
|
||||
else
|
||||
return Keyboard.KEY_LWIN;
|
||||
case KeyEvent.VK_SHIFT:
|
||||
if (position == KeyEvent.KEY_LOCATION_RIGHT)
|
||||
return Keyboard.KEY_RSHIFT;
|
||||
|
|
Loading…
Reference in New Issue