Bug 33248 - Entry.Completed calling Editor.Focus() inserts new line to the focused Editor in iOS
Summary: Entry.Completed calling Editor.Focus() inserts new line to the focused Editor...
Alias: None
Product: Forms
Classification: Xamarin
Component: iOS ()
Version: 1.4.4
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2015-08-20 04:22 UTC by outring
Modified: 2017-02-01 12:50 UTC (History)
4 users (show)

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

Repro project (163.23 KB, application/zip)
2015-11-12 12:26 UTC, E.Z. Hart [MSFT]

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 outring 2015-08-20 04:22:45 UTC
Consider following code:
MyEntry.Completed += (object sender, EventArgs e) => MyEditor.Focus();

When onscreen keyboard return button hit in MyEntry, MyEditor gets focused and new empty line is inserted to MyEditor's text. It's a well known iOS issue, it needs just UITextField.ShouldReturn to return true instead of false.

Comment 1 E.Z. Hart [MSFT] 2015-11-12 12:26:42 UTC
Created attachment 13792 [details]
Repro project
Comment 2 adrianknight89 2016-09-30 05:50:16 UTC
See https://github.com/xamarin/Xamarin.Forms/pull/397
Comment 3 Samantha Houts [MSFT] 2016-12-23 02:57:15 UTC
Should be fixed in 2.3.4-pre2. Thank you!
Comment 4 Parmendra Kumar 2017-02-01 12:50:51 UTC
I have checked this issue with Xamarin.Forms 2.3.4-pre1 and observed that this issue has been fixed.

Hence closing this issue.