Make sure toplevel is active in SetFocus() under wxQt
wxQt also has the same issue mentioned in this ticket #18783 and is now
fixed the same way wxGTK port fixed it in this commit #44a75af.
This commit is contained in:
parent
4652bb05f8
commit
ab21520d7d
1 changed files with 3 additions and 0 deletions
|
|
@ -492,6 +492,9 @@ void wxWindowQt::DoEnable(bool enable)
|
|||
|
||||
void wxWindowQt::SetFocus()
|
||||
{
|
||||
if ( !GetHandle()->isActiveWindow() )
|
||||
GetHandle()->activateWindow();
|
||||
|
||||
GetHandle()->setFocus();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue