0

I tried to implement keyboard shortcut into Silverlight and put the code:

private void link(object sender, KeyEventArgs e) {
    if (Keyboard.Modifiers == ModifierKeys.Control && e.Key == Key.A) {
        MessageBox.Show("alert message");
    }
}

This code works fine when I press Ctrl+A.

Is there any chance to set combination for 2 letters without ModifierKeys, e.g. A+T?

xav
  • 5,452
  • 7
  • 48
  • 57
Marko S
  • 5,097
  • 3
  • 14
  • 11

0 Answers0