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,134
  • 7
  • 44
  • 56
Marko S
  • 4,847
  • 3
  • 13
  • 10

0 Answers0