void HandleEditingEnded(object sender, EventArgs e) { HandleEditingChanged(sender, e); if (OnLostFocus != null) { OnLostFocus.Execute(); } }
void HandleEnded(object sender, EventArgs e) { _view.ResignFirstResponder(); if (OnLostFocus != null) { OnLostFocus.Execute(); } }
public void Unfocus() { if (focused) { focused = false; Main.blockInput = false; OnLostFocus?.Invoke(this, EventArgs.Empty); } //if (!eventSet) return; //eventSet = false; //keyBoardInput.newKeyEvent -= new Action<char>(KeyboardInput_newKeyEvent); //ModUtils.StartListeningForKeyEvents(); //Main.AddKeyEvent(); }
void View_FocusChange(object sender, View.FocusChangeEventArgs e) { if (e.HasFocus) { _activity.ShowSoftInput(View); if (OnGetFocus != null) { OnGetFocus.Execute(); } } else if (OnLostFocus != null) { OnLostFocus.Execute(); } }
private void View_FocusChange(object sender, View.FocusChangeEventArgs e) { if (e.HasFocus) { Activity.ShowSoftInput(View); if (OnGetFocus != null) { OnGetFocus.Execute(); } } else { LogManager.Logger.TextInput(Id, Text); if (OnLostFocus != null) { OnLostFocus.Execute(); } } }
public virtual void Update(GameTime gameTime) { if (Hovering && GInput.MouseNewDown) { Focused = true; OnClicked?.Invoke(this); } else if (!Hovering && GInput.MouseNewDown) { Focused = false; OnLostFocus?.Invoke(this); } foreach (var _item in Items) { _item.Update(gameTime); } }
private void TextBox_LostFocus(object sender, RoutedEventArgs e) { OnLostFocus?.Invoke(this, e); }