Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8332292

[macOS] System MenuBar keyboard shortcuts are localized by default

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • jfx23
    • javafx
    • None

      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: ⌘Ü

            jpereda Jose Pereda
            jpereda Jose Pereda
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: