public static void InternalInvoke(KeyEventHandler f, object sender, KeyboardEvent e) { var a = new __KeyEventArgs { Key = global::System.Windows.Input.KeyInterop.KeyFromVirtualKey((int)e.keyCode), Handled = false }; f(sender, a); if (a.Handled) e.preventDefault(); }
public static void InternalInvoke(KeyEventHandler f, object sender, KeyboardEvent e) { var a = new __KeyEventArgs { Key = global::System.Windows.Input.KeyInterop.KeyFromVirtualKey((int)e.keyCode), Handled = false }; f(sender, a); if (a.Handled) { e.preventDefault(); } }