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