Link to home
Start Free TrialLog in
Avatar of sgood3
sgood3

asked on

How do I take action based on the user pressing 'enter' from within a Matlab text box?

I would like users to be able to enter stuff in a TextBox and hit enter, and have action taken - BUT - matlab's TextBox_Callback is called on either hitting enter OR changing focus. I can't see any way of verifying that they really pressed enter, rather than just clicking outside of the TextBox. Is there any way to either take action when they hit enter (and ONLY when they hit enter) or to find the value of the last key pressed when focus was in the TextBox?
ASKER CERTIFIED SOLUTION
Avatar of yuk99
yuk99
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sgood3
sgood3

ASKER

Hard to believe that a simple thing would be impossible, but hey, thanks at least for letting me go on to other things :)