Skip to content

Commit

Permalink
renamed variable (copy paste mistake)
Browse files Browse the repository at this point in the history
  • Loading branch information
corvinsz committed Aug 22, 2024
1 parent 14833f0 commit dbe9022
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/MaterialDesignThemes.Wpf/NumericUpDown.cs
Original file line number Diff line number Diff line change
Expand Up @@ -267,11 +267,11 @@ protected override void OnPreviewMouseWheel(MouseWheelEventArgs e)
private static void OnGotFocus(object sender, RoutedEventArgs e)
{
// When NumericUpDown gets focus move it to the TextBox
NumericUpDown picker = (NumericUpDown)sender;
if ((!e.Handled) && (picker._textBoxField != null))
NumericUpDown numericUpDown = (NumericUpDown)sender;
if ((!e.Handled) && (numericUpDown._textBoxField != null))
{
picker._textBoxField.Focus();
picker._textBoxField.SelectAll();
numericUpDown._textBoxField.Focus();
numericUpDown._textBoxField.SelectAll();
e.Handled = true;
}
}
Expand Down

0 comments on commit dbe9022

Please sign in to comment.