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

Mnemonic cycling for multiple equal mnemonic armed menu items stops when encountering a submenu

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 7
    • 6u7, 6u12, 6u15
    • client-libs
    • None
    • b74
    • generic, x86
    • generic, linux_ubuntu

        We have seen an unexpected behavior with a Swing GUI.

        When there are multiple menu items with the same mnemonic, the user can press the mnemonic key repeatedly to cycle through these items. However, if one of those items is a submenu, once that menu becomes armed, the cycling stops - pressing the mnemonic key again does not move to the next command. This breaks accessibility of software, as users cannot use mnemnoics to access menu items below the submenu.

        The issue is OS independent, it occurs on Windows, Linux, Solaris and even Mac OS X.
        The customer uses Java 6u7, but it is also reproducible with Java 6u12 and 5u18 for example.

        A testcase is available, it is attached to this report (MenuDemo.tar).

        Extract the tarball and simply run

        $ java -cp . MenuDemo
        (the bytecode has been complied with JDK 5u18, source code is in the same folder)

        Click on one of the menus and press "j" repeatedly.
        In the first menu, the armed item cycles. In the second menu it gets stuck on the submenu.

              peterz Peter Zhelezniakov
              jloefflm Johann Löfflmann (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: