[Editing TTreeNodeShape] 'Return' key to validate a new name
Posted: Fri Feb 17, 2006 11:30 am
Hello,
I think the actual way of beeing able to put a 'Line Return' in the name of a TTreeNodeShape is not very intuitive.
As a I user, I would think that pressing the 'Return' key while editing the name of a TTreeNodeShape will validate the new name, which is not the case.
Is there a way to intercept the 'Return' key to force stopEditing ? I tried to use the 'onKeyPress' event of the TreeView, but this event isn't called when editing a TTreeNodeShape.
I think the actual way of beeing able to put a 'Line Return' in the name of a TTreeNodeShape is not very intuitive.
As a I user, I would think that pressing the 'Return' key while editing the name of a TTreeNodeShape will validate the new name, which is not the case.
Is there a way to intercept the 'Return' key to force stopEditing ? I tried to use the 'onKeyPress' event of the TreeView, but this event isn't called when editing a TTreeNodeShape.