From affbd94cc4d38193d1ce5c34bc6fa06f6b985d81 Mon Sep 17 00:00:00 2001 From: Jordan Marine Date: Thu, 1 Feb 2024 21:47:37 -0600 Subject: [PATCH] Removed keydown handler, was too buggy. --- Forms/ItemDistributionForm.cs | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/Forms/ItemDistributionForm.cs b/Forms/ItemDistributionForm.cs index 1064bc8..7e3c259 100644 --- a/Forms/ItemDistributionForm.cs +++ b/Forms/ItemDistributionForm.cs @@ -149,30 +149,6 @@ private void RefreshDistributionDisplay() dataGridView1.DataSource = dataTable; } - private void DataGridView1_KeyDown(object sender, KeyEventArgs e) - { - if (e.KeyCode == Keys.Space) - { - e.Handled = true; - var i = 0; - foreach (var cell in dataGridView1.SelectedCells) - { - if (cell is DataGridViewCheckBoxCell checkBoxCell) - { - if (checkBoxCell.Value is bool isChecked) - { - checkBoxCell.Value = !isChecked; - } - else - { - // This cell is null for some reason. - checkBoxCell.Value = true; - } - } - } - } - } - private void DataError(object sender, DataGridViewDataErrorEventArgs e) { MainForm.ShowDataError();