Edit Text EnterPressed consume DONE

Rusty

Well-Known Member
Licensed User
Longtime User
Is it possible to consume the EnterPressed event to keep the keyboard from hiding if, while in the EnterPressed event an edit of the text property fails?

In other words, If they type in "5" into an edit text and then touch DONE on the keyboard, I want to be able to evaluate the Text property; If the value is less than 5 (for example), i don't want the keyboard to hide. (or I want to re-invoke it if that can't be accomplished.)
Thanks,
Rusty
 

Rusty

Well-Known Member
Licensed User
Longtime User
I was able to get this done by requesting focus to another view, then requesting focus back to the edit text on which I wanted the keyboard to reappear.
this seems to work, but if there are better methods, I'd appreciate knowing what they are.
Thanks,
Rusty
 
Upvote 0
Top