Community
Participate
Working Groups
In the 3.x code, if you click on a tab, DefaultTabFolder will listen for mouse down events and send out EVENT_GIVE_FOCUS_TO_PART which eventually calls the setFocus method in PartPane. This always gives focus to the control contained by the tab folder and never to the tab folder itself. In 4.x, we set the focus to the control on the initial click, but if you click again on the tab, focus will go to the tab instead of remaining in the control. We need to add some code that preserves the 3.x behaviour and always gives the focus to the control.
Created attachment 196704 [details] Explicitly set the focus on a tab click This fixes the scenario described but still doesn't handle the case where the user clicks in an empty area on the CTF containing the currently active part... the code to fix this is quite finicky; it would have to detect that you were within the tab area to ensure that we didn't get this when clicking on the CTF's border for example... Once Committed I'm going to mark this as fixed and we can deal with the extra case post-4.1.
Committed in >20110526. Applied the patch.
Marking as Fixed, I'll open a new defect for the remaining case fo clickingin the tab area but not on the tab...
Verified in I20110604-2201
I've opened Bug 348398 to track the remaining work.