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

Alt accelerator doesn't work for JMenuBar

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.1
    • 1.4.0
    • client-libs
    • hopper
    • generic
    • generic

      michelle.devereux@Ireland 2001-07-31

      The Sun JavaDocs
       (http://java.sun.com/j2se/1.4/docs/api/javax/swing/doc-files/Key-Metal.html#JMen
      uBar) imply that pressing ALT will give you access to the menu bar and allow you
      to navigate around it using the arrow keys (this is native Window
      behaviour). In actual fact you have to press ALT + (a particular menu
      shortcut letter).

      The following is an extract of the keystrokes from the documentation:
       
      JMenuBar (Java L&F)
      Jump to menubar | Alt
      Navigate out | Esc
      Navigate out | Alt
      Navigate between items within menu | Arrow keys
      Select first item (if no item selected) | F10
      Select next item | Right
      Select previous item | Left
      Select default or selected item | Enter
      Post menu | Up, Down
      Post menu | Enter
      Post menu | Spacebar
      Post menu | Alt+Char accelerator key, if defined
      Un-post menu | Esc
      Un-post menu | Alt

      The problem can be reproduced by starting SwingSet2 from demo directory - pressing ALT key does not get you to the menubar with any L&F.

            peterz Peter Zhelezniakov
            mdevereuorcl Michelle Devereux (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: