fixed #5984: Make sure only ctrl + a key is down

This commit is contained in:
Jaex 2021-12-18 00:36:12 +03:00
parent 6588d9c013
commit f45586a208

View file

@ -271,7 +271,7 @@ public static void SupportSelectAll(this TextBox tb)
{
tb.KeyDown += (sender, e) =>
{
if (e.Control && e.KeyCode == Keys.A)
if (e.KeyData == (Keys.Control | Keys.A))
{
tb.SelectAll();
e.SuppressKeyPress = true;