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:
parent
638f0f89fc
commit
c5aee91847
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user