Skip to content
Snippets Groups Projects
Commit 5d0951c6 authored by James Crook's avatar James Crook
Browse files

Bug 1497 - Time controls not accepting direct typed input

Caused by optimisation of NumericTextCtrl::ValueToControls().  It now only updates on a change, and because mValueStr was being updated without calling value to controls, the string was not being identified as having changed.
parent 96fc293c
No related branches found
No related tags found
No related merge requests found
......@@ -1667,6 +1667,7 @@ void NumericTextCtrl::OnKeyDown(wxKeyEvent &event)
}
mValueString[digitPosition] = wxChar(keyCode);
ControlsToValue();
Refresh();// Force an update of the control. [Bug 1497]
ValueToControls();
mFocusedDigit = (mFocusedDigit + 1) % (mDigits.GetCount());
Updated();
......@@ -1686,6 +1687,7 @@ void NumericTextCtrl::OnKeyDown(wxKeyEvent &event)
if (theDigit != wxChar('-'))
theDigit = '0';
ControlsToValue();
Refresh();// Force an update of the control. [Bug 1497]
ValueToControls();
Updated();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment