Merge pull request #1559 from ScrubN/fix-numeric-up-down-arrow-keys

Fix NumericUpDown text not updating when arrow keys are used
This commit is contained in:
NaBian 2024-04-14 12:56:22 +08:00 committed by GitHub
commit 2155d1d5da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -106,10 +106,12 @@ public class NumericUpDown : Control
if (e.Key == Key.Up)
{
Value += Increment;
SetText(true);
}
else if (e.Key == Key.Down)
{
Value -= Increment;
SetText(true);
}
}