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

Typing JMenuItem shortcut when the focus is in a JTextField adds character

XMLWordPrintable

    • 1.2beta4
    • x86
    • windows_nt
    • Not verified

      ==========================================================================
      carlos.lucasius@canada 1998-05-06:
      Bug reported by Corel (licensee) for JFC1.1 using JDK1.1.4 on WINNT4.0.
      Corel: "Critical bug for our product - requires immediate attention."

      Typing a JMenuItem shortcut when the focus is in a JTextField adds a
      character to the text field in addition to invoking the JMenuItem command.

      To reproduce:

      (1) Create a JFrame with a JTextField and a JMenuBar containing a JMenu
      which contains a JMenuItem with the shortcut ALT-left (i.e., ALT pressed
      simultaneously with the left arrow key)

      (2) Click in the JTextField to give it the focus and then type ALT-left

      Result:

      The JMenuItem to which the shortcut corresponds is executed and a comma
      (',') character has been added to the JTextField. The comma should not be
      added to the JTextField.

            smanisunw Sunita Mani (Inactive)
            clucasius Carlos Lucasius (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: