Page 1 of 1

Escaping EnterName dialog loses keyboard control

Posted: Sat Aug 07, 2010 3:47 am
by yufra
To get this bug open T-Engine, select "Play a new game", pick and module and when the enter name dialog pops up hit escape. The up/down keyboard buttons do not work, and if you hit return you get the "Error, name must be 2 to 25 characters" error from the no longer visible enter name dialog. The mouse can still be used to pick a module and when the enter name dialog comes back up you can use the keyboard again. This leads me to believe the "if last.key then last.key:setCurrent() end" code from Game:unregisterDialog function is not working as intended, but I cannot see why.

Re: Escaping EnterName dialog loses keyboard control

Posted: Sat Aug 07, 2010 6:55 am
by shani
I Fixed it locally, I'll send the patch to DG...

Re: Escaping EnterName dialog loses keyboard control

Posted: Sat Aug 07, 2010 11:05 am
by darkgod
Got it thanks :)