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:
parent
8bc9d456c3
commit
f88064ba55
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue