Checking for 'ENTER' while in GuiTextEditCtrl
by USC - IMD student 4 · in Torque Game Builder · 03/03/2008 (5:21 pm) · 1 replies
I have a GuiTextEditCtrl working in my gui in which users can type something. Then they can hit a 'Submit' button which calls an appropriate function. I'd like them also to be able to hit the Enter key for the same result. But while a GuiTextEditCtrl is active (you can type there) the traditional keybinds don't seem to be active. So even with :
... my function 'enterIt()' never gets called while a GuiTextEditCtrl is active. Any suggestions? ty
moveMap.bindCmd(keyboard, ENTER, "enterIt();", "");
... my function 'enterIt()' never gets called while a GuiTextEditCtrl is active. Any suggestions? ty
About the author
Torque Owner Samo