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

    • Bug
    • Resolution: Fixed
    • P3
    • 8u40
    • 8, 8u40
    • javafx
    • 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

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

            Dates

              Created:
              Updated:
              Resolved:
              Imported: