Fix focus at the end of a property label edit (needed at least for wxGTK)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63756 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1071,11 +1071,17 @@ void wxPropertyGrid::DoEndLabelEdit( bool commit, int selFlags )
|
|||||||
}
|
}
|
||||||
|
|
||||||
m_selColumn = 1;
|
m_selColumn = 1;
|
||||||
|
int wasFocused = m_iFlags & wxPG_FL_FOCUSED;
|
||||||
|
|
||||||
DestroyEditorWnd(m_labelEditor);
|
DestroyEditorWnd(m_labelEditor);
|
||||||
|
|
||||||
m_labelEditor = NULL;
|
m_labelEditor = NULL;
|
||||||
m_labelEditorProperty = NULL;
|
m_labelEditorProperty = NULL;
|
||||||
|
|
||||||
|
// Fix focus (needed at least on wxGTK)
|
||||||
|
if ( wasFocused )
|
||||||
|
SetFocusOnCanvas();
|
||||||
|
|
||||||
DrawItem(prop);
|
DrawItem(prop);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user