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

[Accessibility, HelloPopupMenu] Opening Popup Menu submenu with Space Bar does not select first entry in list, can cause NPE

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8, 8u40
    • Fix Version/s: 8u40
    • Component/s: javafx
    • Environment:

      Windows 7, MacOS 10.10

      Description

      Using HelloPopupMenu, when the focus is on a collapsed submenu entry, Space Bar will expand the submenu list, but does not select the first item in the submenu list.

      If the Space Bar is pressed again, the submenu list is collapsed and an NPE is thrown. This occurs on Windows and Mac.

      Upped the priority one tick due to NPE.

      From Spec (Popup Menu):

      SPACEBAR/ENTER: Commit the value if the item is enabled. If the selected item is a submenu item, open the submenu and select the first item in the submenu.

      See:

      https://wiki.openjdk.java.net/display/OpenJFX/Keyboard+Navigation

      under "Popup Menu".

      The HelloPopupMenu Sample is run from Hello.jar as follows:

      java -cp Hello.jar hello.HelloPopupMenu

        Attachments

          Activity

            People

            Assignee:
            jgiles Jonathan Giles
            Reporter:
            rsloan Rocky Sloan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: