diff --git a/ShareX.HelpersLib/Forms/HashCheckForm.Designer.cs b/ShareX.HelpersLib/Forms/HashCheckForm.Designer.cs index e2d4d4627..7f15620b4 100644 --- a/ShareX.HelpersLib/Forms/HashCheckForm.Designer.cs +++ b/ShareX.HelpersLib/Forms/HashCheckForm.Designer.cs @@ -128,6 +128,7 @@ private void InitializeComponent() resources.ApplyResources(this.txtTarget, "txtTarget"); this.txtTarget.Name = "txtTarget"; this.txtTarget.TextChanged += new System.EventHandler(this.txtTarget_TextChanged); + this.txtTarget.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtTarget_KeyDown); // // lblFilePath // diff --git a/ShareX.HelpersLib/Forms/HashCheckForm.cs b/ShareX.HelpersLib/Forms/HashCheckForm.cs index fb9abab7c..eb57027ea 100644 --- a/ShareX.HelpersLib/Forms/HashCheckForm.cs +++ b/ShareX.HelpersLib/Forms/HashCheckForm.cs @@ -165,14 +165,6 @@ private void txtResult_TextChanged(object sender, EventArgs e) private void txtTarget_TextChanged(object sender, EventArgs e) { - string target = txtTarget.Text; - - if (!string.IsNullOrEmpty(target)) - { - txtTarget.Text = target.RemoveWhiteSpaces().ToUpperInvariant(); - txtTarget.Select(txtTarget.TextLength, 0); - } - UpdateResult(); } @@ -184,6 +176,14 @@ private void txtResult_KeyDown(object sender, KeyEventArgs e) } } + private void txtTarget_KeyDown(object sender, KeyEventArgs e) + { + if (e.Control && e.KeyCode == Keys.A) + { + txtTarget.SelectAll(); + } + } + private void tpFileHashCheck_DragEnter(object sender, DragEventArgs e) { if (e.Data.GetDataPresent(DataFormats.FileDrop, false)) diff --git a/ShareX.HelpersLib/Forms/HashCheckForm.resx b/ShareX.HelpersLib/Forms/HashCheckForm.resx index 9c0f3a9b4..1c50009fe 100644 --- a/ShareX.HelpersLib/Forms/HashCheckForm.resx +++ b/ShareX.HelpersLib/Forms/HashCheckForm.resx @@ -552,6 +552,273 @@ 0 + + btnHashCheckCopyAll + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tpTextConversions + + + 0 + + + txtHashCheckHash + + + System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tpTextConversions + + + 1 + + + lblHashCheckHash + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tpTextConversions + + + 2 + + + btnHashCheckDecodeBase64 + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tpTextConversions + + + 3 + + + txtHashCheckBase64 + + + System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tpTextConversions + + + 4 + + + lblHashCheckBase64 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tpTextConversions + + + 5 + + + btnHashCheckDecodeASCII + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tpTextConversions + + + 6 + + + txtHashCheckASCII + + + System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tpTextConversions + + + 7 + + + lblHashCheckASCII + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tpTextConversions + + + 8 + + + btnHashCheckDecodeHex + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tpTextConversions + + + 9 + + + txtHashCheckHex + + + System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tpTextConversions + + + 10 + + + lblHashCheckHex + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tpTextConversions + + + 11 + + + btnHashCheckDecodeBinary + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tpTextConversions + + + 12 + + + txtHashCheckBinary + + + System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tpTextConversions + + + 13 + + + lblHashCheckBinary + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tpTextConversions + + + 14 + + + btnHashCheckEncodeText + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tpTextConversions + + + 15 + + + txtHashCheckText + + + System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tpTextConversions + + + 16 + + + lblHashCheckText + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tpTextConversions + + + 17 + + + 4, 22 + + + 3, 3, 3, 3 + + + 570, 529 + + + 1 + + + Text conversions + + + tpTextConversions + + + System.Windows.Forms.TabPage, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tcMain + + + 1 + + + Fill + + + 3, 3 + + + 578, 555 + + + 13 + + + tcMain + + + System.Windows.Forms.TabControl, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 0 + 248, 48 @@ -1020,57 +1287,6 @@ 17 - - 4, 22 - - - 3, 3, 3, 3 - - - 570, 529 - - - 1 - - - Text conversions - - - tpTextConversions - - - System.Windows.Forms.TabPage, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tcMain - - - 1 - - - Fill - - - 3, 3 - - - 578, 555 - - - 13 - - - tcMain - - - System.Windows.Forms.TabControl, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - $this - - - 0 - True