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

Unable to construct a KeyStroke with keyChar and modifiers from a string.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.3.0
    • client-libs
    • x86
    • windows_nt



      Name: rmT116609 Date: 12/22/2000


      20 Dec 2000, eval1127@eng -- only open bug that's related appears to
      be # 4370733 (which is not the same issue)
      --------------
      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
      Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)

      Problem:
      When a string with a keyChar and a modifier is used as an
      argument for the getKeyStroke method in the KeyStroke class, a
      KeyStroke is returned with only the keyChar and no modifiers.

      Example:

      import javax.swing.KeyStroke;
      public class test{

      public static void main (String [] args) {
          System.out.println(KeyStroke.getKeyStroke("control typed c"));
      }
      }

      Results: keyChar c-P

      Expected Result: keyChar Ctrlc-P
      (Review ID: 110519)
      ======================================================================

            hgajewsksunw Hania Gajewska (Inactive)
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: