|
@@ -6069,7 +6069,9 @@ public class TextView : View
|
|
|
|
|
|
if (!AllowsReturn || _isReadOnly)
|
|
if (!AllowsReturn || _isReadOnly)
|
|
{
|
|
{
|
|
- return OnAccept ();
|
|
|
|
|
|
+ // By Default pressing ENTER should be ignored (OnAccept will return false or null). Only cancel if the
|
|
|
|
+ // event was fired and set Cancel = true.
|
|
|
|
+ return OnAccept () == false;
|
|
}
|
|
}
|
|
|
|
|
|
SetWrapModel ();
|
|
SetWrapModel ();
|