From 5412667b8fb14342e31d59bf49f29b0c429bddf8 Mon Sep 17 00:00:00 2001 From: CreepyCrafter24 <33260128+CreepyCrafter24@users.noreply.github.com> Date: Wed, 11 Mar 2020 18:58:41 +0100 Subject: [PATCH] Fixed minor screwup --- CC-Clicker 2.0/MainForm.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CC-Clicker 2.0/MainForm.cs b/CC-Clicker 2.0/MainForm.cs index db9c8ac..994b886 100644 --- a/CC-Clicker 2.0/MainForm.cs +++ b/CC-Clicker 2.0/MainForm.cs @@ -9,7 +9,7 @@ namespace CC_Clicker_2._0 public partial class MainForm : Form { private static bool _isSettingKey; - private const Keys Key = Keys.LShiftKey; + private static Keys Key = Keys.LShiftKey; private static bool _isClicking; private static int _setDelay = 100; private static int _delmVal = 4; @@ -25,9 +25,10 @@ namespace CC_Clicker_2._0 { if (_isSettingKey) { + Key = e.Key; keyButton1.BackColor = Color.FromArgb(224, 224, 224); clickBox.Enabled = true; - keyButton1.Text = e.Key.ToString(); + keyButton1.Text = Key.ToString(); _isSettingKey = false; } else