Properties: give focus back to canvas after committing changes

Only needed on MSW, but safe to enable everywhere I think

Fixes https://gitlab.com/kicad/code/kicad/-/issues/13275
This commit is contained in:
Jon Evans 2022-12-26 16:45:20 -05:00
parent ab6aa08f33
commit dee5357d4d
1 changed files with 5 additions and 0 deletions

View File

@ -102,6 +102,11 @@ void PCB_PROPERTIES_PANEL::AfterCommit()
pgProp->Enable( writeable );
}
CallAfter( [&]()
{
static_cast<PCB_EDIT_FRAME*>( m_frame )->GetCanvas()->SetFocus();
} );
}