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

Mac: Right-click in the applet does not bring the focus to the browser window causing issues with Context menus


    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Not an Issue
    • Affects Version/s: 7u6
    • Fix Version/s: 8
    • Component/s: javafx
    • Environment:

      Mac OS
      Firefox / Safari
      JRE7u6 GA


      I have attached context menus to multiple JavaFX Nodes. Once I right-click on a node, a context menu is shown. As soon as I select an item from the context menu, the browser window losses focus due to RT-23879
      Now that I clicked in the context menu, I right-click on another node in order to access it's context menu, however I face multiple issues:
      - In FF the context menu does not appear at all (seems to appear _bellow_ the browser window)
      - In Safari the context menu is missing the javafx focus i.e. items are not higlighted when the mouse is over

      This seems to happen because the browser window is missing a focus, but right-clicking inside the applet does not grab the focus back while it produces events and triggers context menus.
      A workaround is to left-click in the browser first and then right-click


          Issue Links



              • Assignee:
                anthony Anthony Petrov (Inactive)
                kiriljfx Kiril (Inactive)
              • Votes:
                0 Vote for this issue
                4 Start watching this issue


                • Created: