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

Menu accelerator gets inserted into text

    Details

    • Subcomponent:
    • Resolved In Build:
      b02
    • CPU:
      generic, x86, sparc
    • OS:
      generic, solaris_2.5.1, solaris_2.6, windows_95, windows_nt

      Backports

        Description

        If I add an acceleraor (like alt+n) to a menu entry, and if the current input
        focus in a JTextArea, and if I type the alt+n key sequence then *both* the accelerator is activated and an "n" gets inserted into the text. What appears to be happening is that when alt+n is typed both a KeyPressed and a KeyTyped
        event get sent. KeyPressed activates the menu action correctly. The KeyTyped
        event is supposed to be ignored by the TextArea, but it appears not to be.
        The same thing happens with meta, but not with ctrl.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ehawkessunw Eric Hawkes (Inactive)
                  Reporter:
                  jag James Gosling (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: