System.Windows.Forms.HexBox.KeyInterpreter.PreProcessWmKeyDown_ShiftLeft C# (CSharp) Метод

PreProcessWmKeyDown_ShiftLeft() защищенный Метод

protected PreProcessWmKeyDown_ShiftLeft ( Message &m ) : bool
m Message
Результат bool
            protected virtual bool PreProcessWmKeyDown_ShiftLeft(ref Message m)
            {
                long pos = _hexBox._bytePos;
                long sel = _hexBox._selectionLength;

                if(pos + sel < 1)
                    return true;

                if(pos+sel <= _bpiStart.Index)
                {
                    if(pos == 0)
                        return true;

                    pos--;
                    sel++;
                }
                else
                {
                    sel = Math.Max(0, sel-1);
                }

                _hexBox.ScrollByteIntoView();
                _hexBox.InternalSelect(pos, sel);

                return true;
            }