]> git.saurik.com Git - wxWidgets.git/blobdiff - src/propgrid/propgrid.cpp
remove always-true test of unsigned >= 0
[wxWidgets.git] / src / propgrid / propgrid.cpp
index f79faf1af208198e2bc5154b3f87ce4547e6cc41..fac6436c3bf9a94aa028de1ba962f9b602a601a1 100644 (file)
@@ -5687,6 +5687,12 @@ void wxPropertyGrid::HandleKeyEvent( wxKeyEvent &event, bool fromChild )
 
         wxPGProperty* p = selected;
 
+        if ( action == wxPG_ACTION_EDIT && !editorFocused )
+        {
+            DoSelectProperty( p, wxPG_SEL_FOCUS );
+            wasHandled = true;
+        }
+
         // Travel and expand/collapse
         int selectDir = -2;