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

Incorrect doc for Swing and AWTKeyStroke for KEY_TYPED

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P5 P5
    • 1.4.0
    • 1.4.0
    • client-libs
    • None
    • beta
    • generic
    • generic

      Both the Swing KeyStroke and AWTKeyStroke classes have docs like

          /**
           * Returns a shared instance of a KeyStroke that represents a key press and
           * release (i.e., a KEY_TYPED event).
           *
           * @param keyChar the character value for a keyboard key
           * @return a KeyStroke object for that key
           */
          public static KeyStroke getKeyStroke(char keyChar) {

      Actually, this is not correct. KEY_TYPED events don't necessarily require
      a press and a release; most of the time they are one or more presses.

            ehawkessunw Eric Hawkes (Inactive)
            ehawkessunw Eric Hawkes (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: