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();
		}
示例#2
0
        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();
            }
        }