Example #1
0
 private static async void VirtualKeyboardOnKeyDown(object sender, KeyEventArgs keyEventArgs)
 {
     await Task.Factory.StartNew(() => { KeyDownCallback?.Invoke(keyEventArgs); });
 }
Example #2
0
 private static async void GlobalHookOnKeyDown(object sender, KeyEventArgs e)
 {
     await Task.Factory.StartNew(() => { KeyDownCallback?.Invoke(e); });
 }