When renaming an element on the wxTreeview control (by clicking on the label/name) it the mouse be moved out of the control the change is committed automatically.
Or, if we have a second Geometry window opened, it's trick to enter in rename mode. If the mouse was moved relatively fast from that window to the control it never gets the focus, then we are not able to enter in edit mode by clicking on the label or by hitting F2.