From 9a0894a6f787cde8d5d2e1a6618daca6727a805c Mon Sep 17 00:00:00 2001 From: deadmoon Date: Wed, 2 Feb 2022 15:22:27 +0200 Subject: [PATCH] Update MainForm.cs --- Lain/Forms/MainForm.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lain/Forms/MainForm.cs b/Lain/Forms/MainForm.cs index f9d1a65..418ecd7 100644 --- a/Lain/Forms/MainForm.cs +++ b/Lain/Forms/MainForm.cs @@ -650,8 +650,10 @@ private void AccountView_CellMouseDown(object sender, DataGridViewCellMouseEvent if (e.Button == MouseButtons.Right && e.RowIndex != -1) { DataGridViewRow row = AccountView.Rows[e.RowIndex]; + AccountView.CurrentCell = row.Cells[e.ColumnIndex == -1 ? 1 : e.ColumnIndex]; row.Selected = true; + AccountView.Focus(); } }