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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 6u7, 6u12, 6u15
    • Fix Version/s: 7
    • Component/s: client-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b74
    • CPU:
      generic, x86
    • OS:
      generic, linux_ubuntu

      Backports

        Description

        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.

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: