Game Development Community

GuiTextEditCtrl captures "old" keyboard event ?

by Tim Reinermann · in Torque 3D Professional · 09/02/2009 (2:25 pm) · 2 replies

Hi,

I made a simple GUI with a GuiTextEditCtrl which is invisble by default. On startup i add it to playGui. The Gui has a function that makes the GuiTextEditCtrl Visible and the FirstResponder. I bound this function to "u" key.

Problem:

When I hit "u"-key the GuiTextEditCtrl becomes visible, but also has "u" as its Text. But I want the GuiTextEditCtrl to have no Text when it becomes visible ...

It seems like the GuiTextEditCtrl (now beeing first responder) somehow captures the "old" keyboard event which was caused it to appear in the first place.

Any help/ideas/explenations appreciated.

#1
09/02/2009 (2:55 pm)
I would say it's the same as in thread www.garagegames.com/community/forums/viewthread/97605.

I'm still waiting for a feedback on this.
#2
09/07/2009 (4:22 am)
Yes seems to be quite the same story ^^. Maybe I have to add that i'm on a german keyboard ... altough I do not see, why this should make a difference in eventhandling.

I wonder if noone else ran into this.