Mailing Lists: Apple Mailing Lists

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

wrong menu shortcuts with non-QWERTY keyboards



This is one of the worst long-standing bugs in Apple's JVM:

Typing a command-Z (undo) on a French AZERTY keyboard results in a
command-W event (close window). This does not happen with other
JVMs.
Does anybody know of a workaround ?

The code I'm using:
int cmdMenu = Toolkit.getDefaultToolkit().getMenuShortcutKeyMask();
JMenuItem miClose = new JMenuItem ("Fermer");
miClose.setAccelerator(KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_W, cmdMenu));
fileMenu.add(miClose).setEnabled(true);
miClose.addActionListener(this);

The bug occurs on 1.3.1 and 1.4.1_01 (I didn't try the newest 1.4.1).
_______________________________________________
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.