From 0e25f65eb4147557993c4bd979b928a848b8cdc3 Mon Sep 17 00:00:00 2001 From: David Bailes Date: Thu, 12 Apr 2018 11:46:08 +0100 Subject: [PATCH] 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". --- src/widgets/NumericTextCtrl.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/widgets/NumericTextCtrl.cpp b/src/widgets/NumericTextCtrl.cpp index a9664b853..dc066c581 100644 --- a/src/widgets/NumericTextCtrl.cpp +++ b/src/widgets/NumericTextCtrl.cpp @@ -1625,7 +1625,6 @@ void NumericTextCtrl::OnFocus(wxFocusEvent &event) { if (event.GetEventType() == wxEVT_KILL_FOCUS) { AudacityProject::ReleaseKeyboard(this); - mFocusedDigit =0; } else { AudacityProject::CaptureKeyboard(this);