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

Underscore input impossible with Robot Class (for Japanese Keyboards)

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 1.3.1, 1.4.2
    • client-libs
    • Fix Understood
    • x86
    • windows_98, windows_2000



      Name: yyT116575 Date: 06/26/2001


      java version "1.3.1"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24)
      Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode)

      Japanese keyboards have two keys which both produce a backslash character.
      Usually, one is labeled with a yen symbol, and the other with a normal
      backslash. Pressing shift, however, produces different results. Pressing
      shift with the yen key will produce a pipe symbol, while the other will
      produce an underscore.

      Currently, with the Robot class, if a Japanese keyboard user does

      Robot robot = new Robot();
      robot.keyPress(KeyEvent.VK_SHIFT);
      robot.keyPress(KeyEvent.VK_BACK_SLASH);
      robot.keyRelease(KeyEvent.VK_SHIFT);

      The output will be a pipe character. KeyEvent does not distinguish between the
      two backslash keys, so it seems impossible to enter an underscore.

      Suggestion: add a KeyEvent.VK_YEN, pressing shift should return a pipe for it.
      Then VK_BACKSLASH should return underscore with shift.
      (Review ID: 127361)
      ======================================================================

            denis Denis Fokin (Inactive)
            yyoungsunw Yung-ching Young (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: