From fe89df140c4fa15327d8c2c173e8aaa86020fa82 Mon Sep 17 00:00:00 2001 From: adelikat Date: Tue, 26 Nov 2019 09:50:19 -0600 Subject: [PATCH] InputRoll - when AllowRightClickSelect is true, existing selected rows should be cleared in addition to selecting the right-clicked one --- BizHawk.Client.EmuHawk/CustomControls/InputRoll/InputRoll.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/BizHawk.Client.EmuHawk/CustomControls/InputRoll/InputRoll.cs b/BizHawk.Client.EmuHawk/CustomControls/InputRoll/InputRoll.cs index 29e106758e..23a241b3e9 100644 --- a/BizHawk.Client.EmuHawk/CustomControls/InputRoll/InputRoll.cs +++ b/BizHawk.Client.EmuHawk/CustomControls/InputRoll/InputRoll.cs @@ -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)