Issue with TextBox.KeyUp event in a Telerik DataGrid

Huynh Than 65 Reputation points
2024-02-26T16:13:38.4866667+00:00

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. User's image [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.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,417 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.