Somehow the OnValueChanged()
method doesn't get called when an user presses the delete key on an empty android mobile Inputfield.
I guess as it is empty the value of inputfield is ""
before pressing delete and still ""
after. Thus there isn't an OnValueChanged()
called.
I tried checking for the delete key
in Update()
but Android doesn't seem to notify an application when the delete key
gets pressed.
How can I check if the delete key is pressed?
What I want to achieve is that the Inputfield
gets deactivated when the user presses the delete key and the inputfield is empty...
Using c# and Unity