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?