I am working with Xamarin.Forms NavigationPage and ContentPage for handheld scanner Motorola. I am trying to handle the 'Enter' hardware button for the button click on page. By default, the focus is on Navigation back button and when I press Enter button, I go to previous ContentPage. However, I want the default focus to be on Button [instead of NavigationBar back button] that I have in ContentPage. I can navigate with arrow keys and press the button on page. But I want the focus to be in button when the page first loads.
What I tried are:-
1. Remove the NavigationBar with
NavigationPage.SetHasNavigationBar(). In this case, the NavigationBar is hidden, however still the focus on hidden back button.
2. Disable the back button and Icon with
Any code or idea for handling the issue would be really helpful.