mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-03 06:03:13 +02:00
Bug 875 - First character is highlighted when tabbing into TimeText controls, not first non-zero character.
This commit is contained in:
parent
8de9c53e9e
commit
7ab4b8c6df
@ -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);
|
||||
|
@ -157,7 +157,7 @@ class NumericTextCtrl final : public wxControl, public NumericConverter
|
||||
DECLARE_DYNAMIC_CLASS(NumericTextCtrl)
|
||||
|
||||
struct Options {
|
||||
bool autoPos { false };
|
||||
bool autoPos { true };
|
||||
bool readOnly { false };
|
||||
bool menuEnabled { true };
|
||||
bool hasInvalidValue { false };
|
||||
|
Loading…
x
Reference in New Issue
Block a user