Keyboard scripting
Ines Hilz
Posts: 38 🔥
Hi all
I want to use editable text and looking for a way to trigger something when the user presses enter / closes the keayboard. Is it possible ? thank you
0
Best Answer
-
not sure if you still need it, but in case someone else is reading this:
use the onEditingFinished event on the Text Component!Here's an example that prints 'hi' when the user is done typing:
//@input Component.Text textComponent script.textComponent.onEditingFinished.add(doOnFinished); function doOnFinished(){ print('hi!'); }
0