InputRoll - when AllowRightClickSelect is true, existing selected rows should be cleared in addition to selecting the right-clicked one

This commit is contained in:
adelikat 2019-11-26 09:50:19 -06:00
parent 6d9dfa8956
commit fe89df140c
1 changed files with 3 additions and 2 deletions

View File

@ -1201,8 +1201,6 @@ namespace BizHawk.Client.EmuHawk
}
}
base.OnMouseDown(e);
if (AllowRightClickSelection && e.Button == MouseButtons.Right)
{
if (!IsHoveringOnColumnCell && CurrentCell != null)
@ -1211,10 +1209,13 @@ namespace BizHawk.Client.EmuHawk
_currentY = e.Y;
Cell newCell = CalculatePointedCell(_currentX.Value, _currentY.Value);
newCell.RowIndex += FirstVisibleRow;
_selectedItems.Clear();
CellChanged(newCell);
SelectCell(CurrentCell);
}
}
base.OnMouseDown(e);
}
protected override void OnMouseUp(MouseEventArgs e)