MonoGameUi.Control.InternalKeyPress C# (CSharp) Method

InternalKeyPress() private method

private InternalKeyPress ( KeyEventArgs args ) : void
args KeyEventArgs
return void
        internal void InternalKeyPress(KeyEventArgs args)
        {
            // Children first (Order by Z-Order)
            foreach (var child in Children.InZOrder())
            {
                child.InternalKeyPress(args);
                if (args.Handled)
                    break;
            }

            // Bubble up
            if (!args.Handled)
            {
                OnKeyPress(args);
                if (KeyPress != null)
                    KeyPress(this, args);
            }
        }