Wykryj, jeśli klawisz modyfikatora jest wciśnięty w zdarzeniu KeyRoutedEventArgs

Mam następujący kod:

public void tbSpeed_KeyDown(object sender, KeyRoutedEventArgs e)
{
    e.Handled = !((e.Key >= 48 && e.Key <= 57) || (e.Key >= 96 && e.Key <= 105) || (e.Key == 109) || (e.Key == 189));
}

Czy jest jakiś sposób na wykrycie, czy wciśnięty jest jakikolwiek klawisz modyfikujący, taki jak shift?

questionAnswers(4)

yourAnswerToTheQuestion