Flood.GUI.Controls.TextBox.OnKeyReturn C# (CSharp) Method

OnKeyReturn() protected method

Handler for Return keyboard event.
protected OnKeyReturn ( bool down ) : bool
down bool Indicates whether the key was pressed or released.
return bool
        protected override bool OnKeyReturn(bool down)
        {
            base.OnKeyReturn(down);
            if (down) return true;

            OnReturn();

            // Try to move to the next control, as if tab had been pressed
            OnKeyTab(true);

            // If we still have focus, blur it.
            if (HasFocus)
            {
                Blur();
            }

            return true;
        }