Update the event handling guard for focused controls

This commit is contained in:
Marek Roszko 2021-07-05 13:38:16 -04:00
parent 4f3674bd1d
commit 84092ce6d4
1 changed files with 1 additions and 1 deletions

View File

@ -523,7 +523,7 @@ void TOOL_DISPATCHER::DispatchWxEvent( wxEvent& aEvent )
wxTextEntry* textEntry = dynamic_cast<wxTextEntry*>( focus ); wxTextEntry* textEntry = dynamic_cast<wxTextEntry*>( focus );
wxStyledTextCtrl* styledText = dynamic_cast<wxStyledTextCtrl*>( focus ); wxStyledTextCtrl* styledText = dynamic_cast<wxStyledTextCtrl*>( focus );
if( textEntry || styledText ) if( KIUI::IsInputControlFocused() )
{ {
bool enabled = true; bool enabled = true;