Desktop version

Main > Forum > 1C:Enterprise Platform > 1C:Enterprise – Business applications platform > How to Close Form on Enter Key Press

Forum

Search UsersRules
How to Close Form on Enter Key Press
#1
Active user
Points:: 0
Joined:: Sep 16, 2011

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?

Profile
#2
Active user
Points:: 1
Joined:: Jul 20, 2011

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

Profile
#3
Interested
Points:: 15
Joined:: Oct 27, 2011

press ctrl+ Enter

Profile
#4
Active user
Points:: 0
Joined:: Sep 16, 2011

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

Profile
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)



© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.