void OnFocusedChange(object?sender, FocusChangeEventArgs e) { if (!e.HasFocus) { VirtualView?.Completed(); } }
void OnFocusedChange(bool hasFocus) { if (!hasFocus) { VirtualView?.Completed(); } }
void OnEnded(object?sender, EventArgs eventArgs) { if (VirtualView != null) { VirtualView.IsFocused = false; VirtualView.Completed(); } }
void OnFocusedChange(bool hasFocus) { AnimatePlaceholder(); if (!hasFocus) { VirtualView?.Completed(); } }
protected virtual bool OnShouldReturn(UITextField view) { view.ResignFirstResponder(); // TODO: Focus next View VirtualView?.Completed(); return(false); }
void OnEditorAction(object?sender, EditorActionEventArgs e) { if (e.IsCompletedAction()) { // TODO: Dismiss keyboard for hardware / physical keyboards VirtualView?.Completed(); } e.Handled = true; }
protected override MauiTextView CreatePlatformView() { var platformEditor = new MauiTextView(); #if !MACCATALYST platformEditor.InputAccessoryView = new MauiDoneAccessoryView(() => { platformEditor.ResignFirstResponder(); VirtualView?.Completed(); }); #endif return(platformEditor); }
void OnEnded(object?sender, EventArgs eventArgs) { if (VirtualView == null || NativeView == null) { return; } if (NativeView.Text != VirtualView.Text) { VirtualView.Text = NativeView.Text ?? string.Empty; } // TODO: Update IsFocused property VirtualView.Completed(); }
void OnNativeKeyUp(object?sender, KeyRoutedEventArgs args) { if (args?.Key != VirtualKey.Enter) { return; } if (VirtualView?.ReturnType == ReturnType.Next) { NativeView?.TryMoveFocus(FocusNavigationDirection.Next); } else { // TODO: Hide the soft keyboard; this matches the behavior of .NET MAUI on Android/iOS } VirtualView?.Completed(); }
void OnEnded(object?sender, EventArgs eventArgs) { Drawable.HasFocus = false; Invalidate(); if (VirtualView == null || PlatformView == null) { return; } if (PlatformView.Text != VirtualView.Text) { VirtualView.Text = PlatformView.Text ?? string.Empty; } // TODO: Update IsFocused property VirtualView.Completed(); }
void OnLostFocus(object?sender, RoutedEventArgs e) { VirtualView?.Completed(); }
void OnEnded(object?sender, EventArgs eventArgs) { // TODO: Update IsFocused property VirtualView.Completed(); }