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

Menu accelerator gets inserted into text

XMLWordPrintable

    • b02
    • generic, x86, sparc
    • generic, solaris_2.5.1, solaris_2.6, windows_95, windows_nt

        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.

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: