diff options
author | Chris King <kingces95@gmail.com> | 2017-02-17 12:04:50 -0800 |
---|---|---|
committer | Rui Marinho <me@ruimarinho.net> | 2017-02-21 10:24:12 +0000 |
commit | 217a59e5873b1a4850719c26b11b853270df70ce (patch) | |
tree | 58071c61764cf9eee170bfad9e6408b2bd5e9cb0 /Xamarin.Forms.Platform.Android | |
parent | 5e84299ac3f01bed5f5a69313dd3a1fe2598e41a (diff) | |
download | xamarin-forms-217a59e5873b1a4850719c26b11b853270df70ce.tar.gz xamarin-forms-217a59e5873b1a4850719c26b11b853270df70ce.tar.bz2 xamarin-forms-217a59e5873b1a4850719c26b11b853270df70ce.zip |
update IEditorController callsites
Diffstat (limited to 'Xamarin.Forms.Platform.Android')
-rw-r--r-- | Xamarin.Forms.Platform.Android/Renderers/EditorRenderer.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Xamarin.Forms.Platform.Android/Renderers/EditorRenderer.cs b/Xamarin.Forms.Platform.Android/Renderers/EditorRenderer.cs index 77c71450..1f2c51b6 100644 --- a/Xamarin.Forms.Platform.Android/Renderers/EditorRenderer.cs +++ b/Xamarin.Forms.Platform.Android/Renderers/EditorRenderer.cs @@ -17,6 +17,8 @@ namespace Xamarin.Forms.Platform.Android AutoPackage = false; } + IEditorController ElementController => Element; + void ITextWatcher.AfterTextChanged(IEditable s) { } @@ -54,7 +56,7 @@ namespace Xamarin.Forms.Platform.Android edit.AddTextChangedListener(this); edit.OnBackKeyboardPressed += (sender, args) => { - Element.SendCompleted(); + ElementController.SendCompleted(); edit.ClearFocus(); }; } @@ -98,7 +100,7 @@ namespace Xamarin.Forms.Platform.Android internal override void OnNativeFocusChanged(bool hasFocus) { if (Element.IsFocused && !hasFocus) // Editor has requested an unfocus, fire completed event - Element.SendCompleted(); + ElementController.SendCompleted(); } void UpdateFont() |