1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-16 16:10:06 +02:00

Modification to fix for Bug 875 - NumericTextCtrl

Modification to commit 7ab4b8c. The first non-zero digit only becomes the focus on the first visit to the control. On subsequent visits, the focus is the previous focus. Example use case: modifying start and end times by a tenth of a second. The user can move between the controls without loosing his "place".
This commit is contained in:
David Bailes 2018-04-12 11:46:08 +01:00
parent 8e71ebca87
commit 0e25f65eb4

View File

@ -1625,7 +1625,6 @@ void NumericTextCtrl::OnFocus(wxFocusEvent &event)
{
if (event.GetEventType() == wxEVT_KILL_FOCUS) {
AudacityProject::ReleaseKeyboard(this);
mFocusedDigit =0;
}
else {
AudacityProject::CaptureKeyboard(this);