How to Close Form on Enter Key Press

The 1C:Enterprise developers forum

#1
People who like this:0Yes/0No
Active user
Rating: 4
Joined: Sep 16, 2011
Company: Oksley Shipping

Hello!
I have a common form with Text Field and two buttons: OK and Cancel. The form is managed, OK and Cancel buttons are standard.
I need OK button to be clicked when Enter key is pressed inside the Text Field. Or Close the form in the way like OK button was pressed.
How can I implement that?

 
#2
People who like this:0Yes/0No
Active user
Rating: 3
Joined: Jul 20, 2011
Company:

There is no appropriate event to handle Enter key pressed for Text Field. You need to redesign your form.

 
#3
People who like this:0Yes/0No
Interested
Rating: 32
Joined: Oct 27, 2011
Company: Abaco Soluciones S.A.

press ctrl+ Enter

 
#4
People who like this:0Yes/0No
Active user
Rating: 4
Joined: Sep 16, 2011
Company: Oksley Shipping

Yep! That's much easier! Thanks, Alexey!

 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.