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:
Elias Naur 2007-08-28 07:38:20 +00:00
parent 524702ee0d
commit 473eb61c60
1 changed files with 5 additions and 1 deletions

View File

@ -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;