Browse Source

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
7.0
Brian Fiete 3 years ago
committed by Seth Hillbrand
parent
commit
f88064ba55
  1. 2
      cvpcb/cvpcb_mainframe.cpp

2
cvpcb/cvpcb_mainframe.cpp

@ -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…
Cancel
Save