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

Dead keys not working well for OSX's Installable Keyboard Layout

    Details

      Description

      ADDITIONAL SYSTEM INFORMATION :
      JDK 12 Early-Access Builds 27 (2019/1/10)
      Java SE 1.8.0_77-b03
      Java SE 1.8.0_191-b12
      RubyMine (using OpenJDK 1.8.0_152)

      A DESCRIPTION OF THE PROBLEM :
      The dead keys c/g/h/j/s/u of my Esperanto keyboard layout are not handled correctly by the Java runtime:
      https://github.com/jakwings/mac-keyboard-Esperanto

      The documentation about Installable Keyboard Layout:
      https://developer.apple.com/library/archive/technotes/tn2056/_index.html

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      As described in https://github.com/jakwings/mac-keyboard-Esperanto/issues/3

      Typing c/g/h/j/s/u followed by a key that is not ESC/TAB/c/g/h/j/s/u/x/X will produce c/g/h/j/s/u plus its duplicate.

      e.g. Input keys: "s", "i"

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Output: "si"
      ACTUAL -
      Output: "ss"

      ---------- BEGIN SOURCE ----------
      import javax.swing.JOptionPane;

      class KeyboardLayoutTest {
      public static void main(String argv[]) {
      String version = System.getProperty("java.runtime.version");
      String input = JOptionPane.showInputDialog(version, version);
      }
      }
      ---------- END SOURCE ----------

        Attachments

          Activity

            People

            • Assignee:
              pardesha Pardeep Sharma
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: