Bug 30891 - Closing the soft-keyboard removes focus from an entry field
Summary: Closing the soft-keyboard removes focus from an entry field
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: 1.4.3
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2015-06-08 06:01 UTC by Kenneth Brodersen
Modified: 2016-11-16 22:09 UTC (History)
2 users (show)

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

Simple project that can be used to reproduce this bug (25.34 KB, application/octet-stream)
2015-06-08 06:01 UTC, Kenneth Brodersen

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 Kenneth Brodersen 2015-06-08 06:01:16 UTC
Created attachment 11499 [details]
Simple project that can be used to reproduce this bug

Entry field looses focus whenever the soft-keyboard is hidden (using the soft-keys). 

This is an issue on devices with a hardware keyboard (tested on an Intermec CN51) 

Steps to reproduce: 
1) Download and run the attached project on a device with a hardware keyboard. The application contain a simple entry field and a button. 
2) click the entry field and enter some text using software- or hardware keyboard. 
3) Close the sofkeyboard by using the back button

Observed behavior: 
The entry has lost focus resulting in two problems: 
1) Text entered on the hardware keyboard is no longer directed to the entry view
2) The page can not longer be navigated using the DPAD up/down buttons on the device. 

Expected behavior: 
The software keyboard should be hidden but the view should maintain its focus.
Comment 1 Paul DiPietro [MSFT] 2016-11-16 22:09:28 UTC
The current behavior is by design, but this could be a good candidate for a platform specific feature and will be looked into.