1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-08 04:32:00 +01:00

Bug 875 - First character is highlighted when tabbing into TimeText controls, not first non-zero character.

This commit is contained in:
James Crook
2018-04-09 15:51:18 +01:00
parent 8de9c53e9e
commit 7ab4b8c6df
2 changed files with 4 additions and 1 deletions

View File

@@ -1625,9 +1625,12 @@ void NumericTextCtrl::OnFocus(wxFocusEvent &event)
{
if (event.GetEventType() == wxEVT_KILL_FOCUS) {
AudacityProject::ReleaseKeyboard(this);
mFocusedDigit =0;
}
else {
AudacityProject::CaptureKeyboard(this);
if( mFocusedDigit <=0 )
UpdateAutoFocus();
}
Refresh(false);