"Enter" key function to assign variable in GUI
5 views (last 30 days)
Show older comments
I have a problem in adding enter key to my GUI, while taking variable from the user. How can i write a function for enter key?
3 Comments
Answers (1)
Walter Roberson
on 19 Oct 2018
Use the Callback property of the uicontrol. It will be run when the user presses return after selecting the control, or if the user makes a change to the content of the edit field and then clicks somewhere outside the control.
0 Comments
See Also
Categories
Find more on Migrate GUIDE Apps in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!