Text entry, pause and resume
Oct 12, 2022
By
David Smith
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!
5 Replies
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.
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.
..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!
I usually put a submit button or something like that onscreen so the user has to click away from the text entry field.
Yes, I think that's what I'll have to do.