diff --git a/common/tool/tool_dispatcher.cpp b/common/tool/tool_dispatcher.cpp index 973c73ebe8..fa68174bf8 100644 --- a/common/tool/tool_dispatcher.cpp +++ b/common/tool/tool_dispatcher.cpp @@ -523,7 +523,7 @@ void TOOL_DISPATCHER::DispatchWxEvent( wxEvent& aEvent ) wxTextEntry* textEntry = dynamic_cast( focus ); wxStyledTextCtrl* styledText = dynamic_cast( focus ); - if( textEntry || styledText ) + if( KIUI::IsInputControlFocused() ) { bool enabled = true;