Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with qwertz-keyboards and accelerators [SOLVED]



Hi,

just to close this thread: As Greg Guerin pointed out, the problem below is a bug in Apple's JVM. Luckily, it is solved in 1.4.1 DP102. Thanks!

Knud

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'.

------------------------------------------------------------------------ ----------------
Knud Mvller - Institut f|r Sprachliche Informationsverarbeitung,
Universitdt zu Kvln
(Department of Linguistic Data Processing,
University of Cologne, Germany)
http://www.spinfo.uni-koeln.de/~kmoeller

------------------------------------------------------------------------ ----------------
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.


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.