I am trying to raise an event when the user presses ctrl - x using the KeyDown . This works fine for ctrl - D , but the event does not fire when ctrl - x is pressed. I assume this is because ctrl - x is a cut command. Is there a way to trigger an event when ctrl - x is pressed?
private void textBox_KeyDown(object sender, KeyEventArgs e) { if (e.KeyboardDevice.IsKeyDown(Key.LeftCtrl) || e.KeyboardDevice.IsKeyDown(Key.RightCtrl)) { switch (e.Key) { case Key.D:
source share