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

PIT: Keyboard FocusTraversal not working when choice's drop-down is visible, on XToolkit

XMLWordPrintable

    • b40
    • sparc
    • solaris_9
    • Verified

      I have few components on a frame and Choice is one of them. Choice is non-focusable. Now when I click on Choice the drop-down appears but focus still stays with TextField. So all the keyevents are delivered to TextField. Now when I press TAB on TextField, nothing happens and Key_Typed event being triggered for TAB. Normally pressing TAB should initiate a forward focus traversal. But this is not happening when Choice's drop-down is visible and Choice is non-focusable.

      This is reproducible only on the following PIT build with XToolkit:
      java version "awt.pit-awt-blade-2005-04-05-Tue-int.mustang"
      Java(TM) 2 Runtime Environment, Standard Edition (build awt.pit-awt-blade-2005-04-05-Tue-int.mustang)
      Java HotSpot(TM) Client VM (build 1.6.0-ea-b30, mixed mode)

      Not able to test on Motif since non-focusable choice gains focus. Not able to test on Win32 since the drop-down does not appear when choice is non-focusable. On last promoted build, the focus traversal works perfectly.

      I have attached a sample test. Execute the sample test on XToolkit. You would see a frame with few components. Click on TextField. Make sure it gains focus. Click on Choice. The drop-down will appear. But focus will still be in TextField. Press TAB. IF focus is not shifted to TextArea, the bug is reproduced.
      ###@###.### 2005-04-09 13:28:00 GMT

            dav Andrei Dmitriev (Inactive)
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: