public override void OnKeyPreview(ref Key key) { AbstractTextInputHandler textInputHandler = _textInputHandler; if (textInputHandler != null && IsEnabled) { textInputHandler.HandleInput(ref key); } base.OnKeyPreview(ref key); }
void OnHasFocusChanged(AbstractProperty prop, object oldValue) { AbstractTextInputHandler oldTextInputHandler = _textInputHandler; _textInputHandler = HasFocus ? CreateTextInputHandler() : null; if (oldTextInputHandler != null) { oldTextInputHandler.Dispose(); } CheckTextCursor(); }
internal override void OnKeyPreview(ref Key key) { // Clipboard handling is independent from actual input handler HandleClipboardKeys(ref key); AbstractTextInputHandler textInputHandler = _textInputHandler; if (textInputHandler != null && IsEnabled) { textInputHandler.HandleInput(ref key); } base.OnKeyPreview(ref key); }
void OnHasFocusChanged(AbstractProperty prop, object oldValue) { AbstractTextInputHandler oldTextInputHandler = _textInputHandler; _textInputHandler = HasFocus ? CreateTextInputHandler() : null; if (oldTextInputHandler != null) oldTextInputHandler.Dispose(); CheckTextCursor(); }