I'm trying to implement a behavior where you hit the space bar and depending on the tokens of the UIInput value, I ignore the space and clear the input value.
I have overridden ProcessEvent and picked up the space, and clear out the input, but the space gets added after the value is cleared (with return true or false - not sure what this return value does - I was hoping one of them would ignore the character). This is very close to the behavior I want, but it adds the extra space at the beginning of the input.
I have tried to do the same in a validation callback, but the validation callback is in the middle of a string builder building the new value, so clearing the value in the callback doesn't have any effect.
I have tried some combinations of the two, but I wasn't able to get it to work. I am assuming this is probably the approach I will need.
Any ideas?
Thanks!
Kirk