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