Update the event handling guard for focused controls
This commit is contained in:
parent
4f3674bd1d
commit
84092ce6d4
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue