beta 7b and gui focus

Hi,

I’m porting one of my projects from 2.6 over to 3, and I’ve run into some difficulty with my chat window. What I would do is in the Update() call check for the enter key to decide whether to open the chat. Then I’d use that same call with a toggle to decide to close the chat when they pressed enter again.

However, it looks like in 3 the gui absorbs key presses before they get to Update()… which is awesome for other projects in which I’d assumed that and had some problems… but now I’m not sure how to work around it in this case.

Does anyone have any suggestions?

Thanks,

I would do what you should normally do for such a thing, inspect the current event within OnGUI instead of using something thats not meant for gui interaction handling. Should work better and “on time”

This is complicated by the fact that OnGUI is called multiple times per frame is it not?