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

Focus is lost when tabbing SWT_AWT to SWT to SWT_AWT

    Details

    • Subcomponent:
    • CPU:
      generic
    • OS:
      linux

      Description

      This problem is found when working with another change request 6527109 and uses the same test (attached, requires SWT). Run the test, a single SWT toplevel window is shown with two text areas and one text field inside. The upper text area and the text field are AWT components embedded into SWT_AWT shells, while the text area in the middle is pure SWT widget.

      Prior to the fix for 6527109 user couldn't get the text field focused with mouse. However, the fix doesn't eliminate another problem: the text field cannot be focused with keyboard. To reproduce the problem, launch the test, wait until both AWT components are embedded. Then press TAB to get SWT text area focused and then CTRL+TAB to move focus to the text field. If the text field is not focused, the bug is reproduced.

      Subsequent TAB or CTRL+TAB correctly moves focus to the upper AWT text area. If I first click the text field with mouse, the bug is not reproduced. If I first press SHIFT_TAB, focus moves to the SWT text area instead of AWT text field.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ant Anton Tarasov
                Reporter:
                art Artem Ananiev
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: