SIngle-selection tree control gets focus on wxMSW when items are deleted
|Reported by:||ikamakj||Owned by:|
|Keywords:||wxTreeCtrl delete focus||Cc:|
Tree control items may be deleted in response to a keyboard action in some other window, therefore the deletion should not result in focus change. The MSW implementation of wxTreeCtrl has the problem that item deletion may generate a TVN_SELCHANGING event and the handling of this in wxTreeCtrl::MSWOnNotify() calls SetFocus(). With multiple-selection tree controls this call is prevented during deletion by the m_changingSelection flag being set in wxTreeCtrl::Delete(). Is there any reason why the same could not be done for single-selection controls?
Change History (5)
comment:4 Changed 2 years ago by sky_walker
- Resolution fixed deleted
- Status changed from closed to reopened