Bug 43867 - Numeric keyboard shows text / default keyboard when back button is hit
Summary: Numeric keyboard shows text / default keyboard when back button is hit
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: 2.3.2
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2016-08-30 02:03 UTC by adrianknight89
Modified: 2017-07-07 10:10 UTC (History)
6 users (show)

Tags: ac
Is this bug a regression?: ---
Last known good build:

repro (67.84 KB, application/zip)
2016-08-30 02:03 UTC, adrianknight89
correct-repro (60.10 KB, application/zip)
2016-08-30 02:17 UTC, adrianknight89

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description adrianknight89 2016-08-30 02:03:05 UTC
Created attachment 17250 [details]

Please see repro.

Steps to produce:

1) Tap on Entry to bring into focus
2) Numeric keyboard shows
3) Hit on back button to dismiss keyboard
4) While dismissing, keyboard changes to text / default keyboard.
5) If you can't observe this, start from step 1 until you observe.

You might need to follow these steps anywhere between 1 - 10 times to see the issue. In my actual app, it happens almost all the time. This is a serious problem for me, and I'd like to see a fix soon.
Comment 1 adrianknight89 2016-08-30 02:17:29 UTC
Created attachment 17251 [details]

please ignore my first repro as it was the incorrect project.

i attached the correct repro for you to see.
Comment 2 adrianknight89 2016-09-01 07:04:54 UTC
I'm thinking the issue might be with Mono.Android. Keyboard type changes after
public virtual bool OnKeyPreIme([GeneratedEnum] Keycode keyCode, KeyEvent e);

is called in Xamarin.Forms.Platform.Android.EntryEditText.
Comment 3 John Hardman 2016-10-21 16:18:28 UTC
With XF, I am finding that Android is showing the default keyboard after Entry is set to use the numeric keyboard. No need to hit the Back button etc.

The problem is not seen on iOS, WinRT or UWP, only on Android.
Comment 4 adrianknight89 2016-12-30 02:04:20 UTC
See https://github.com/xamarin/Xamarin.Forms/pull/663

@John, I haven't tested your scenario. Looks like it's a different issue. If you have a repro, please file another bug.
Comment 5 Samantha Houts [MSFT] 2017-01-30 19:54:11 UTC
Should be fixed in 2.3.5-pre1. Thank you!
Comment 6 Saurabh Paunikar 2017-07-07 10:10:58 UTC
Verified on xamarin.form version

ScreenCast link : https://www.screencast.com/t/KjJf3ZyOI6EF

Hence marking this issue as verified