Unfocus text editor when enter is pressed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56017 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3257,6 +3257,14 @@ void wxPropertyGrid::OnCustomEditorEvent( wxCommandEvent &event )
|
||||
|
||||
DoPropertyChanged(selected, selFlags);
|
||||
EditorsValueWasNotModified();
|
||||
|
||||
//
|
||||
// Regardless of editor type, unfocus editor on
|
||||
// text-editing related enter press.
|
||||
if ( event.GetEventType() == wxEVT_COMMAND_TEXT_ENTER )
|
||||
{
|
||||
SetFocusOnCanvas();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user