FormsEditText expandability

BrianSchjPedersenBrianSchjPedersen DKMember
edited October 2 in Xamarin.Forms Evolution

Summary

To make Xamarin.Forms.Platform.Android.FormsEditText more extandable to allow custom handling of EntryRenderer and EditorRenderer key events and back button presses.

API Changes

In Xamarin.Forms.Platform.Android.FormsEditText the constructor and OnKeyboardBackPressed EventHandler is internal. I would like them made public instead.

Intended Use Case

Ultimately I would like to override the new 2.4.0 behaviour when pressing the Android Device back button. Before 2.4.0 the back button was handled by the NavigationPage desendant in the method OnBackButtonPressed. Now a focused Entry control must loose focus first. And the another back button press is needed to navigate back.
My device has a built in keyboard. Therefore I need the custom handling to optimize the work flow with no onscreen keyboard.

0
0 votes

Open · Last Updated

Sign In or Register to comment.