Fix highlighting wxTimePickerCtrl fields on GTK

GtkEntry automatically selects all the text in many situations,
so do the field highlighting later to override GTK's behavior.
This commit is contained in:
Paul Cornett 2021-01-21 11:38:22 -08:00
parent 638f0f89fc
commit c5aee91847

View File

@ -156,7 +156,7 @@ private:
// Event handlers for various events in our controls.
void OnTextSetFocus(wxFocusEvent& event)
{
HighlightCurrentField();
CallAfter(&wxTimePickerGenericImpl::HighlightCurrentField);
event.Skip();
}
@ -303,6 +303,7 @@ private:
}
ChangeCurrentField(field);
CallAfter(&wxTimePickerGenericImpl::HighlightCurrentField);
}
void OnArrowUp(wxSpinEvent& WXUNUSED(event))