コード例 #1
0
		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();
		}
コード例 #2
0
        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();
            }
        }