Enter Key and Text Fields
Posted: Thu Jul 24, 2014 6:31 pm
I am having a really frustrating time with the enter key. I know that when you use it in in a text field is sends the message enterInField instead of enter. I am working on the flashcard app in livecode university.
This is what I need to happen:
When finished typing the answer in the response field. Press Enter. When enter is pressed then run mouseUp in button CheckAnswer. Here is the code I have
on enterKey
send "mouseUp" to button "CheckAnswer"
end enterKey
How can I get this to run when pressing enter in a text field instead of enterInField?
I have already tried moving the code up the message hierarchy to a group, the card, and the stack. I have literally tried everything I can think of.
Thanks in advance!
This is what I need to happen:
When finished typing the answer in the response field. Press Enter. When enter is pressed then run mouseUp in button CheckAnswer. Here is the code I have
on enterKey
send "mouseUp" to button "CheckAnswer"
end enterKey
How can I get this to run when pressing enter in a text field instead of enterInField?
I have already tried moving the code up the message hierarchy to a group, the card, and the stack. I have literally tried everything I can think of.
Thanks in advance!