| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Apparently, when setting a keyboard accelerator to eg. VK_Z, that
resolves to the _key_ on a qwerty-keyboad, and not to the _character_
'z'. See eg the following code:
JMenuItem undo = ...;
undo.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_Z,
Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));
That results in the weird situation that someone with a german keyboard
(which is qwertz) will have to press 'y' to trigger VK_Z. What is even
worse, is the fact that the menu item still says its accelerator is 'z'.
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.