Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Problem with Android Back button and hard keyboard

$
0
0

I have an Android Xamarin.Forms app that can be run on devices with a hard keyboard. If there is no hard keyboard, everything works fine:
1. User enters a form and a field gets focus
2. Soft keyboard automatically pops up
3. User hits Back key and soft keyboard is closed
4. User hits Back key again and we navigate to the previous form

When using a device with a hard keypad:
1. User enters a form and a field gets focus (soft keyboard is NOT displayed because the device has a hard keyboard)
2. User hits Back key
3. Expect to navigate back, but instead the field with focus just loses focus.
4. User hits Back key again and we navigate to the previous form

I have an OnBackButtonPressed override set up and it fires for step #4, but not for step #3.
It almost seems like at step #3 it's trying to close a soft keyboard that isn't there.
Any idea how to get around this behavior?


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>