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

OnKeyLeft() protected method

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

            if (m_CursorPos > 0)
                m_CursorPos--;

            if (!Input.InputHandler.IsShiftDown)
            {
                m_CursorEnd = m_CursorPos;
            }

            RefreshCursorBounds();
            return true;
        }