Bug 39702 - Cannot enter text when Entry is focus()'d from an editor completed event
Summary: Cannot enter text when Entry is focus()'d from an editor completed event
Status: VERIFIED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: 2.1.0
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-03-17 00:13 UTC by Pete Schmitz
Modified: 2016-04-26 19:00 UTC (History)
3 users (show)

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

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:
Status:
VERIFIED FIXED

Description Pete Schmitz 2016-03-17 00:13:16 UTC
Description: After focusing an Entry from an Editor event (Completed/Unfocused), the entry shows focus (cursor + soft keyboard) but the user is unable to enter text.

Forms version: 2.1.0.6529
Emulator: XAP - Nexus 5, 4.4.2
Xamarin Studio 5.10.3

Repro:
Create forms Android project, update forms
Add code below and launch emulator
Focus editor text if not already active
Deselect editor
Attempt to insert text

code:

public class TestPage : ContentPage
		{
			public TestPage() {
				this.Title = "focus test";
				var editor = new Editor();
				var entry = new Entry();

				editor.Unfocused += (object sender, FocusEventArgs e) => {;
					entry.Focus();
				};

				this.Content = new StackLayout{
					Children = {
						editor,
						entry
					}
				};
			}
		}
Comment 1 Jason Smith [MSFT] 2016-03-17 01:24:59 UTC
Immediate workaround is to add a very slight delay.
Comment 2 Rui Marinho 2016-03-29 17:19:36 UTC
Should be fixed in 2.2-pre1
Comment 3 Parmendra Kumar 2016-04-26 19:00:23 UTC
I have checked this issue and I am not able to reproduce this issue with Xamarin.Forms 2.2.0-pre4 and its working fine.

Hence closing this issue.