-
Bug
-
Resolution: Unresolved
-
P4
-
jfx23
-
None
-
os_x
On macOS, with system menu bar true, adding a keyboard shortcut to a MenuItem with a key combination that implies a key that changes between different keyboard layouts (typically punctuation mark keys have a different location on the keyboard depending on the country), shows the same key regardless the input source, when running with the Oracle OpenJDK builds, but shows localized versions when running with any other vendor or even when building OpenJDK locally.
To reproduce, run the attached test, that adds a shortcut "⌘;", on macOS, with any recent JavaFX version, like 23-ea, with either an Oracle OpenJDK build like 21.0.2, or with a different vendor or local build, and then change the input source (System Settings -> Keyboard -> Input Sources -> Add):
With Oracle OpenJDK build:
- US: ⌘;
- Spain: ⌘;
- France: ⌘;
- Germany: ⌘;
With other vendors or local OpenJDK build:
- US: ⌘;
- Spain: ⌘¡
- France: ⌘)
- Germany: ⌘Ü
To reproduce, run the attached test, that adds a shortcut "⌘;", on macOS, with any recent JavaFX version, like 23-ea, with either an Oracle OpenJDK build like 21.0.2, or with a different vendor or local build, and then change the input source (System Settings -> Keyboard -> Input Sources -> Add):
With Oracle OpenJDK build:
- US: ⌘;
- Spain: ⌘;
- France: ⌘;
- Germany: ⌘;
With other vendors or local OpenJDK build:
- US: ⌘;
- Spain: ⌘¡
- France: ⌘)
- Germany: ⌘Ü