Cursor backtrack fix for cvpcb filter string

On Windows the insertion point (cursor) can change between onTextFilterChangedTimer entry and exit, which caused the insertion point to be restored to a stale value
This commit is contained in:
Brian Fiete 2022-10-22 13:34:00 -04:00 committed by Seth Hillbrand
parent 8bc9d456c3
commit f88064ba55
1 changed files with 1 additions and 1 deletions

View File

@ -464,7 +464,7 @@ void CVPCB_MAINFRAME::onTextFilterChangedTimer( wxTimerEvent& aEvent )
DisplayStatus();
if( searchCtrlHasFocus )
if( searchCtrlHasFocus && !m_tcFilterString->HasFocus() )
{
m_tcFilterString->SetFocus();
m_tcFilterString->SetInsertionPoint( pos );