Beispiel #1
0
        public void ProcessEvent(Event evt)
        {
            if (!IsInteractive())
            {
                return;
            }

            if (!_inputEventProcessor.ProcessEvent(evt, Caret.GetIndex(), Caret.GetSelectionIndex()))
            {
                DeactivateInputField();
            }
        }
Beispiel #2
0
        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();
            }
        }