Пример #1
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();
		}
Пример #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();
            }
        }