How do I ensure my inputfield in UI 4.6 stops picking up keyboard input after I have submitted using enter or clicked on another object?
Setting intractable to false makes the input field no longer pickup mouse clicks.
This is a clarification of this question:
I have tried the following but this doesn’t work:
myInput.onEndEdit.AddListener(delegate{StopInput(myInput);});
void StopInput(InputField _input) {
print (_input.text);
_input.DeactivateInputField ();
}
Where myInput is a inputfield created in c#.