Some time ago I had a problem with making UI logic of view that can be Label and EditBox both:
I mean Text() -> doubleClick action -> display TextEdit() -> fill it with new text -> Enter key press -> text changes saved and displayed in Text()
solution is in answer below