JDK-8087915 : Mac: accelerator doesn't take into account azerty keyboard layout
  • Type: Bug
  • Component: javafx
  • Sub-Component: window-toolkit
  • Affected Version: 7u15,8,9
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2013-05-27
  • Updated: 2023-12-21
  • Resolved: 2023-12-20
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Description
<MenuItem mnemonicParsing="false" text="%btn_undo" fx:id="undoButton">
                  <accelerator>
                    <KeyCodeCombination alt="UP" code="Z" control="UP" meta="UP" shift="UP" shortcut="DOWN" />
                  </accelerator>
                </MenuItem>

I have the above xml in my fxml file. On Windows with azerty it works fine, on Mac OS X with an azerty keyboard I have to press the meta+w key instead of z. When I type something in a textfield in my app the keyboard layout is respected. 
Comments
Duplicate of JDK-8150709
20-12-2023

AlexZ, Does it affect 9? 8u?
25-08-2016

Vincent: thanks for the links. Indeed, looks like JDK has the same problem. The bugs that you mention are currently targeted to JDK 9. Once fixed in the mainline, the fixes could be back-ported to previous releases (8uX and/or 7uX).
12-11-2013

We have the exact same problem in a Swing application (which does not involve any JavaFX code) with JDK 7 on Mac (AZERTY keyboard treated as QWERTY for some modifiers only, see https://josm.openstreetmap.de/ticket/8654#comment:33 ). I think this is caused by https://bugs.openjdk.java.net/browse/JDK-8022079 / https://bugs.openjdk.java.net/browse/JDK-8019498 by there's no way for public comments... Can you check with JDK guys if they are willing to fix this bug in JDK7 ?
31-10-2013

A related issue is filed for Windows platform: RT-33242.
02-10-2013

This probably means that Glass reports wrong code for the events.
27-05-2013