Fix setting focus on mouse button press in wxUniv

Call base version of HandleMouse to allow the base theme handle to set
the focus to the widget.

Closes #22074.
This commit is contained in:
Kvaz1r
2022-01-30 11:44:16 +02:00
committed by Vadim Zeitlin
parent 2bbe0d7769
commit 03b2ebcffb
2 changed files with 0 additions and 4 deletions

View File

@@ -210,8 +210,6 @@ bool wxStdAnyButtonInputHandler::HandleMouse(wxInputConsumer *consumer,
m_winHasMouse = true;
consumer->PerformAction(wxACTION_BUTTON_PRESS);
return true;
}
else if ( event.LeftUp() )
{

View File

@@ -1439,8 +1439,6 @@ bool wxStdListboxInputHandler::HandleMouse(wxInputConsumer *consumer,
if ( !action.IsEmpty() )
{
lbox->PerformAction(action, item);
return true;
}
return wxStdInputHandler::HandleMouse(consumer, event);