• Post Reply Bookmark Topic Watch Topic
  • New Topic

keypress event

 
Henk Rog
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm trying to display a form when enter is pressed on a textbox. How can I do this? Any example is welcome.
Thanks
:roll:
 
Jason Fox
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using a Canvas, override the

method, check the keyCode to see if the user pressed 'Enter' button and then make your calls to display what ever you'd like (bearing in mind that you'll have to switch to a high-level UI Displayable if you want use such things as TextFields, etc).
Hope this helps.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!