mettli / guichan

Automatically exported from code.google.com/p/guichan
Other
0 stars 0 forks source link

textField inside tab #43

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. attach a textField inside a tab
2. try to click it with the mouse: textfield can not get focus (no carret,
no typing)
3. It can be select by TAB keyboard. Carret can now show up and typing is
possible.

I would expect one can select the textfield by mouse. For example my button
in the same tab can be clicked, as expected. Also, textfield outside tabbed
area are of course selectable by mouse.

Linux + SDL

Original issue reported on code.google.com by lpo.shin...@gmail.com on 13 Apr 2008 at 9:58

GoogleCodeExporter commented 9 years ago
I fixed this by moving the requestFocus() out of TabbedArea::mousePressed(...) 
and
into the second loop inside TabbedArea::setSelectedTab(...) 

Original comment by ben.ratz...@gmail.com on 19 Jun 2008 at 9:33

GoogleCodeExporter commented 9 years ago
Can you tell me why you moved it there?

Original comment by b.lindeijer on 15 Jul 2008 at 10:42

GoogleCodeExporter commented 9 years ago
As a TabbedArea can contain other widgets it needs to be a bit more polite when 
it
requests focus. Now, a TabbedArea only requests focus if it receives a mouse 
event
from a non focusable widget.

Original comment by olof.nae...@gmail.com on 4 Aug 2008 at 9:18