mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-30 07:29:29 +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);
|
mValueString[digitPosition] = wxChar(keyCode);
|
||||||
ControlsToValue();
|
ControlsToValue();
|
||||||
|
Refresh();// Force an update of the control. [Bug 1497]
|
||||||
ValueToControls();
|
ValueToControls();
|
||||||
mFocusedDigit = (mFocusedDigit + 1) % (mDigits.GetCount());
|
mFocusedDigit = (mFocusedDigit + 1) % (mDigits.GetCount());
|
||||||
Updated();
|
Updated();
|
||||||
@ -1686,6 +1687,7 @@ void NumericTextCtrl::OnKeyDown(wxKeyEvent &event)
|
|||||||
if (theDigit != wxChar('-'))
|
if (theDigit != wxChar('-'))
|
||||||
theDigit = '0';
|
theDigit = '0';
|
||||||
ControlsToValue();
|
ControlsToValue();
|
||||||
|
Refresh();// Force an update of the control. [Bug 1497]
|
||||||
ValueToControls();
|
ValueToControls();
|
||||||
Updated();
|
Updated();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user