Пример #1
0
 public static bool KeyUp(Control control, NSEvent theEvent)
 {
     if (control != null)
     {
         var kpea = theEvent.ToEtoKeyEventArgs();
         control.OnKeyUp(kpea);
         return(kpea.Handled);
     }
     return(false);
 }
Пример #2
0
 public static bool KeyUp(Control control, NSEvent theEvent)
 {
     if (control != null)
     {
         var handler = control.Handler as IMacViewHandler;
         var kpea    = theEvent.ToEtoKeyEventArgs();
         handler.Callback.OnKeyUp(control, kpea);
         return(kpea.Handled);
     }
     return(false);
 }
        public static bool KeyDown(Control control, NSEvent theEvent)
        {
            var handler = control?.Handler as IMacViewHandler;

            if (handler == null)
            {
                return(false);
            }

            var kpea = theEvent.ToEtoKeyEventArgs();

            handler.OnKeyDown(kpea);
            return(kpea.Handled);
        }
Пример #4
0
		public static bool KeyDown(Control control, NSEvent theEvent)
		{
			if (control != null)
			{
				var kpea = theEvent.ToEtoKeyEventArgs();
				control.OnKeyDown(kpea);
				if (!kpea.Handled)
				{
					var handler = control.Handler as IMacViewHandler;
					if (handler != null)
						handler.PostKeyDown(kpea);
				}

				return kpea.Handled;
			}
			return false;
		}
Пример #5
0
        public static bool KeyDown(Control control, NSEvent theEvent)
        {
            if (control != null)
            {
                var kpea = theEvent.ToEtoKeyEventArgs();
                control.OnKeyDown(kpea);
                if (!kpea.Handled)
                {
                    var handler = control.Handler as IMacViewHandler;
                    if (handler != null)
                    {
                        handler.PostKeyDown(kpea);
                    }
                }

                return(kpea.Handled);
            }
            return(false);
        }
Пример #6
0
		public static bool KeyUp(Control control, NSEvent theEvent)
		{
			if (control != null)
			{
				var handler = control.Handler as IMacViewHandler;
				var kpea = theEvent.ToEtoKeyEventArgs();
				handler.Callback.OnKeyUp(control, kpea);
				return kpea.Handled;
			}
			return false;
		}
Пример #7
0
		public static bool KeyUp(Control control, NSEvent theEvent)
		{
			if (control != null)
			{
				var kpea = theEvent.ToEtoKeyEventArgs();
				control.OnKeyUp(kpea);
				return kpea.Handled;
			}
			return false;
		}