Community
Participate
Working Groups
Created attachment 223561 [details] example-demo Given two parts, with one containing a composite with several text widgets. The focus of the part is set to its composite. The first text widget contains a text (via setText()) and the others are empty. Manually setting the focus to one of the empty text widgets will copy the text of the first widget into the selected one. The attached sample shows such an application. Steps to reproduce: 1. Start application. 2. Click into the empty part, to make sure it gains focus. 3. Click into the empty text widget of the opposite part. The error does not occur under linux (gtk).
Adding a focus listener to the empty text widget shows three focus-gained events and two focus-lost events. The first field contains the text "Test". Setting the focus manually from the empty part to the empty text widget (as described below) results in the following output: Gained: Lost: Gained: Test Lost: Test Gained: Test