private void TextField_TextChanged(object sender, EventArgs e)
        {
            foreach (var c in textField.Text)
            {
                OnTextInput(new TextInputEventArgs(c, KeyboardUtil.ToXna(c)));
            }

            textField.Text = string.Empty;
        }
Пример #2
0
        private void EditText_TextChanged(object sender, TextChangedEventArgs e)
        {
            foreach (var c in e.Text)
            {
                OnTextInput(new TextInputEventArgs(c, KeyboardUtil.ToXna(c)));
            }

            editText.TextChanged -= EditText_TextChanged;
            editText.Text         = string.Empty;
            editText.TextChanged += EditText_TextChanged;
        }