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

Need working way to select first item in a context menu

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: fx2.0
    • Fix Version/s: fx2.0
    • Component/s: javafx
    • Labels:

      Description

      I need a way to programmatically select the first item in the context menu and give it focus so that I can keyboard navigate it. This is required for the search box in ensemble. I have tried contextMenu.setFocus(true) which seems like it should do it but it dosn't work.Need way to select first item in a context menu.

      It seems to work if I have previously moused over the menu, otherwise it doesn't.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                psomashe Parvathi Somashekar (Inactive)
                Reporter:
                jasper Jasper Potts
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: