Closed Shadowblitz16 closed 6 months ago
Implement KeyDown event handler in the control on which you don't want default behavior
private void AddItemButton_KeyDown(object sender, KeyEventArgs e)
{
if ((e.Key == Key.Up || e.Key == Key.Down) && supressUpDown)
e.Handled = true;
}
Is there a way to disable focus loss when using the arrow keys?