From c5aee918472791c7e4d31e27304eb40a04c1c287 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Thu, 21 Jan 2021 11:38:22 -0800 Subject: [PATCH] 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. --- src/generic/timectrlg.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/generic/timectrlg.cpp b/src/generic/timectrlg.cpp index 1363bfdd5c..2435eb9547 100644 --- a/src/generic/timectrlg.cpp +++ b/src/generic/timectrlg.cpp @@ -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))