Eto.Mac.Forms.Controls.MacEventView.KeyDown C# (CSharp) Method

KeyDown() public static method

public static KeyDown ( Control control, NSEvent theEvent ) : bool
control Eto.Forms.Control
theEvent NSEvent
return bool
		public static bool KeyDown(Control control, NSEvent theEvent)
		{
			if (control != null)
			{
				var handler = control.Handler as IMacViewHandler;
				var kpea = theEvent.ToEtoKeyEventArgs();
				handler.OnKeyDown(kpea);
				return kpea.Handled;
			}
			return false;
		}