Skip to content

Commit

Permalink
Merge pull request #1559 from ScrubN/fix-numeric-up-down-arrow-keys
Browse files Browse the repository at this point in the history
Fix NumericUpDown text not updating when arrow keys are used
  • Loading branch information
NaBian authored Apr 14, 2024
2 parents c7f4712 + ab9c58c commit 2155d1d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,12 @@ private void TextBox_PreviewKeyDown(object sender, KeyEventArgs e)
if (e.Key == Key.Up)
{
Value += Increment;
SetText(true);
}
else if (e.Key == Key.Down)
{
Value -= Increment;
SetText(true);
}
}

Expand Down

0 comments on commit 2155d1d

Please sign in to comment.