I want to remove my text box when the user presses the "Done" key on the onscreen keyboard. Otherwise it takes 2 keypresses to leave the input screen, by implementing an OK button. Is this possible?
Ascii 27 (Escape) can be identified.
Ascii 13 (Return) works on a PC but not on a virtual keyboard.
There is no "Get Last Key" for a virtual keyboard.
Pressing "Done" loses the focus of the edit box. But so does touching the screen outside of the edit box, which could easily be done accidentally.
I tried detecting PointerState to differentiate between the two, but when you click outside of an edit box, there is no pointer event.
Is it possible to do what I am trying to do?