mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-21 19:13:44 +00:00
Fix Focus Issue in Parent Window After Hiding the Search Panel
Previously, when the search panel was hidden, the focused search control did not lose focus, causing an inability to focus on any items in the parent window when using shortcut keys. This forces correct focus back to the edit window Fixes https://gitlab.com/kicad/code/kicad/-/issues/12613
This commit is contained in:
parent
07a0c980f3
commit
2bee6f2549
@ -752,7 +752,7 @@ void PCB_EDIT_FRAME::ToggleSearch()
|
||||
|
||||
wxAuiPaneInfo& searchPaneInfo = m_auimgr.GetPane( SearchPaneName() );
|
||||
searchPaneInfo.Show( m_show_search );
|
||||
|
||||
|
||||
if( m_show_search )
|
||||
{
|
||||
searchPaneInfo.Direction( settings->m_AuiPanels.search_panel_dock_direction );
|
||||
@ -772,11 +772,12 @@ void PCB_EDIT_FRAME::ToggleSearch()
|
||||
m_searchPane->FocusSearch();
|
||||
}
|
||||
else
|
||||
{
|
||||
{
|
||||
settings->m_AuiPanels.search_panel_height = m_searchPane->GetSize().y;
|
||||
settings->m_AuiPanels.search_panel_width = m_searchPane->GetSize().x;
|
||||
settings->m_AuiPanels.search_panel_dock_direction = searchPaneInfo.dock_direction;
|
||||
m_auimgr.Update();
|
||||
GetCanvas()->SetFocus();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user