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

[macOS] Help system menu won't hide or it is shown twice

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • jfx23
    • javafx
    • None

      On macOS, the Help menu in the system menubar (with the literal "Help" title) is modified by the OS, adding Spotlight items, like a search textfield.

      The attached test case shows how, when a popup window is shown, this Help menu won't hide after the menu items are removed or how two popups are shown at the same time for the same Help menu.

      Steps to reproduce the issue:

      - Launch the application (see startApplication.png)
      - Click the "Open dialog" button.
      - Quickly click on the "Help" menu in the menu bar (before the dialog shows up)
       - Hover with the mouse the Help menuItems, and when the dialog shows up, hover the Help menu: another About menuItem pops up (first issue, see twoMenuPopups.png)
       - At this point clicking on any menu (File, Help), or menuItem (Exit or About) will close the menus, but the first Help popup won't close (second issue, see unclosedMenu.png), unless exiting the application.

      The issue can be reproduced with any JavaFX version from 17 to head.
       

        1. HelpMenuTest.java
          3 kB
        2. helpSceneBuilder.png
          helpSceneBuilder.png
          319 kB
        3. startApplication.png
          startApplication.png
          122 kB
        4. twoMenuPopups.png
          twoMenuPopups.png
          146 kB
        5. unclosedMenu.png
          unclosedMenu.png
          144 kB

            jpereda Jose Pereda
            jpereda Jose Pereda
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: