InputRoll - when AllowRightClickSelect is true, existing selected rows should be cleared in addition to selecting the right-clicked one
This commit is contained in:
parent
6d9dfa8956
commit
fe89df140c
|
@ -1201,8 +1201,6 @@ namespace BizHawk.Client.EmuHawk
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
base.OnMouseDown(e);
|
|
||||||
|
|
||||||
if (AllowRightClickSelection && e.Button == MouseButtons.Right)
|
if (AllowRightClickSelection && e.Button == MouseButtons.Right)
|
||||||
{
|
{
|
||||||
if (!IsHoveringOnColumnCell && CurrentCell != null)
|
if (!IsHoveringOnColumnCell && CurrentCell != null)
|
||||||
|
@ -1211,10 +1209,13 @@ namespace BizHawk.Client.EmuHawk
|
||||||
_currentY = e.Y;
|
_currentY = e.Y;
|
||||||
Cell newCell = CalculatePointedCell(_currentX.Value, _currentY.Value);
|
Cell newCell = CalculatePointedCell(_currentX.Value, _currentY.Value);
|
||||||
newCell.RowIndex += FirstVisibleRow;
|
newCell.RowIndex += FirstVisibleRow;
|
||||||
|
_selectedItems.Clear();
|
||||||
CellChanged(newCell);
|
CellChanged(newCell);
|
||||||
SelectCell(CurrentCell);
|
SelectCell(CurrentCell);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
base.OnMouseDown(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnMouseUp(MouseEventArgs e)
|
protected override void OnMouseUp(MouseEventArgs e)
|
||||||
|
|
Loading…
Reference in New Issue