void BeginMouseSelection(object sender, MouseEventArgs e) { System.Diagnostics.Debug.WriteLine("BeginMouseSelection()", "KeyInterpreter"); if (e.Button != MouseButtons.Left) { return; } _mouseDown = true; if (!_shiftDown) { _bpiStart = new BytePositionInfo(_hexBox._bytePos, _hexBox._byteCharacterPos); _hexBox.ReleaseSelection(); } else { UpdateMouseSelection(this, e); } }
protected virtual bool PreProcessWmKeyDown_ShiftShiftKey(ref Message m) { if (_mouseDown) { return(true); } if (_shiftDown) { return(true); } _shiftDown = true; if (_hexBox._selectionLength > 0) { return(true); } _bpiStart = new BytePositionInfo(_hexBox._bytePos, _hexBox._byteCharacterPos); return(true); }