
I've been attempting to figure out if I can use a KeyPress event with the RadEntry on Xamarin.Forms.
I realize that a(n) KeyPress event is most likely platform specific. But I can't seem to determine if there is a way to detect "Tab" being sent (\t). I have a scan engine providing data the RadEntry and I would like to detect a scan being present utilizing that tab event.
I can do this in Xamarin.Android using keypress events on EditText views. However, OnTextChanged event doesn't seem to have the (\t) Tab input.
4 Answers, 1 is accepted
Hello Dalton,
I would need more details on the scenario - since you mentioned tab key, what key on the Android keyboard do you mean? Could you send me some sample code showing the exact scenario?
In general, RadEntry provides TextChanged and Completed events - Completed is raised when entering text is finalized with the keyboard return key.
Since you mentioned Xamarin.Android - you can create a custom renderer for the Entry on Android and handle the keypress of the native EditText there. Would such an approach be acceptable?
I look forward to your reply.
Regards,
Yana
Progress Telerik
Our thoughts here at Progress are with those affected by the outbreak.

From your description I may actually be able to use either the completed Event or the custom render option.
The exact scenario is this:
- User (using Zebra TC70x Barcode Scanner) scans a barcode
- I have programmed the barcode scanner settings to send the "TAB" or "\t" Postamble (at the end of the scan's content)
- I then want to move the user to the next field (EditText.RequestFocus() in native) or (Entry.Focus() in forms)
I may just end up changing the standard post-amble for devices and use the keyboard return somehow (but that may not even be possible, are the returns the same across all platforms. Is it as simple as an "Enter")
I'll update the post with my full solution when I've determined the best course of action, Thank you for your guidance Yana!

In the end, due to time constraints and my requirement to only be functional on the Android platform I went with the OnCompleted Event.
I used datawedge on the Zebra TC70X device to send the Enter key after the data. Everything worked as expected.
Hello Dalton,
I am glad to hear you've found a suitable approach to handle the scenario.
If you have any additional questions, let me know.
Regards,
Yana
Progress Telerik
Our thoughts here at Progress are with those affected by the outbreak.