Finish text editing on <Enter>

J

jvdb

I'm making a shape with a textbox. The user should be able to edit th
text, but should be constrained to only one line of text. Currentl
when the user presses <Enter> a new line is created, but I want t
override the behaviour of <Enter> so that text editing will stop, jus
like when the user presses <Esc> or click outside the textbox.

In a perfect world, I would also like to constrain the characters th
user can type in the textbox, e.g. no ^ & and % are allowed.

Any ideas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top