public void ProcessEvent(Event evt) { if (!IsInteractive()) { return; } if (!_inputEventProcessor.ProcessEvent(evt, Caret.GetIndex(), Caret.GetSelectionIndex())) { DeactivateInputField(); } }
public virtual void ProcessEvent(Event evt) { if (!IsInteractive()) { return; } bool shouldContinue = _inputEventProcessor.ProcessEvent(evt, Caret.GetIndex(), Caret.GetSelectionIndex()); if (shouldContinue) { //FIXME: update text twice with a single keydown in editor mode. UpdateText(); } else { DeactivateInputField(); } }