Forum Discussion
Text entry, pause and resume
Hi. What's a neat way to have my timeline pause until a user has entered text into a text entry field, and then resume when they're done?
Obviously the pause part is easy, but I've tried triggering a Resume off the Text Entry losing focus and that didn't work, neither did triggering a Resume off the text variable changing. I guess I could just include a 'continue' button, but I'd rather not.
Any ideas gratefully received!
- MichaelHinzeCommunity Member
The 'losing focus' event needs to be triggered in some way, e.g. by clicking on another object or by a keypress. See attached a quick example that resumes the timeline by either pressing the Tab key or Enter.
- DavidSmith-6d0fCommunity Member
..although annoyingly the Enter key press then becomes part of the text entry, which has an effect on font size and formatting when recalled later in the course as a Reference. I might have to work out a fix for that!
- DavidSmith-6d0fCommunity Member
Thanks Michael! I hadn't realised that specific keys such as Enter could be used to trigger events - that's a neat way of achieving what I'm after without introducing additional buttons.
I usually put a submit button or something like that onscreen so the user has to click away from the text entry field.
- DavidSmith-6d0fCommunity Member
Yes, I think that's what I'll have to do.