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

Popup Menu does not gain focus by default when it is shown on the screen

XMLWordPrintable

    • sparc
    • solaris_9

      I am adding a popup menu to a frame and showing when the user clicks the right mouse button within a textarea. When the popup menu is shown, it does not gain focus by default and hence none of the key board traversals work. When I move the mouse over any of the menuitems or sub-menus the menuitems are getting highlighted but not accessible through keys. But When I click any of the sub-menus, the popup menu gains focus and keyboard traversal works after that. But it must gain focus as soon as it is shown.

      This is reproducible on SparcSolaris9-CDE on all releases. This works fine on win32.

      I have attached a sample test. Execute the sample test. A frame would appear with a button and a textarea. Right click the mouse inside the textarea and the popup menu will be shown. Check whether it has focus by pressing the arrow keys. If none of the items are selected, the bug is reproduced.

      Double clicking the right mouse button inside the popup menu makes the sub-menu appear at improper locations and a separate bug has alredy been filed on that (5040712).

            serb Sergey Bylokhov
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: