diff --git a/common/widgets/ui_common.cpp b/common/widgets/ui_common.cpp index 9777981816..5b51317a67 100644 --- a/common/widgets/ui_common.cpp +++ b/common/widgets/ui_common.cpp @@ -20,6 +20,7 @@ #include #include #include +#include #include #include @@ -170,12 +171,14 @@ void KIUI::SelectReferenceNumber( wxTextEntry* aTextEntry ) bool KIUI::IsInputControlFocused() { wxWindow* focus = wxWindow::FindFocus(); + wxTextEntry* textEntry = dynamic_cast( focus ); wxStyledTextCtrl* styledText = dynamic_cast( focus ); wxListBox* listBox = dynamic_cast( focus ); wxDataViewCtrl* dataViewCtrl = dynamic_cast( focus ); + wxSearchCtrl* searchCtrl = dynamic_cast( focus ); - return ( textEntry || styledText || listBox || dataViewCtrl ); + return ( textEntry || styledText || listBox || dataViewCtrl || searchCtrl ); }