mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-29 15:09:30 +02:00
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.
This commit is contained in:
parent
96fc293c60
commit
5d0951c643
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user