Issue with TextBox.KeyUp event in a Telerik DataGrid
Huynh Than
65
Reputation points
I'm using an event attached to TextBox.KeyUp that looks like this. I'm using custom control with Handler/mapper approach. This is a native control that inherits from TextBox. [RC:OCRed text]
private void TextBoxOnKeyUp(object sender, KeyRoutedEventArgs args)
{
if (args?. Key != VirtualKey-Enterl)
return;
}
var cREntry = _entry;
if (cREntry. ReturnType == ReturnType.Next)
FocusManager. TryMoveFocus (FocusNavigationDirection. Next);
}
else
if (cREntry.KeyboardAliveType != KeyboardAliveType.OnCompleted &&
This function does certain things when Enter key is pressed. However, it doesn't detect the Enter for some reasons. Other keys like Caplock, Numbers, etc. work just fine. Do you have any work-around for this issue? This affects my project a big deal because we rely heavily on the Enter key to allow users navigate.
Sign in to answer