MCPcopy Create free account
hub / github.com/audacity/audacity / OnFocus

Method OnFocus

src/widgets/NumericTextCtrl.cpp:679–688  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

677}
678
679void NumericTextCtrl::OnFocus(wxFocusEvent &event)
680{
681 KeyboardCapture::OnFocus( *this, event );
682
683 if (event.GetEventType() != wxEVT_KILL_FOCUS &&
684 mFocusedDigit <= 0 )
685 UpdateAutoFocus();
686
687 event.Skip( false ); // PRL: not sure why, but preserving old behavior
688}
689
690void NumericTextCtrl::OnFormatUpdated(bool resetFocus)
691{

Callers

nothing calls this directly

Calls 2

OnFocusFunction · 0.85
SkipMethod · 0.80

Tested by

no test coverage detected