| 677 | } |
| 678 | |
| 679 | void 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 | |
| 690 | void NumericTextCtrl::OnFormatUpdated(bool resetFocus) |
| 691 | { |