Interactive editing of labels

You can combine various elements of FoamTree API to implement interactive editing of group labels.

Click and hold a group to edit its label. Press Esc to exit editing.

What's in the code?