selectionKey property
A text variable holding the selected object's key: handles show only while it equals selectionKey (empty: the node's id), and a tap writes it. Empty: handles always show.
Implementation
final String selectionVariable, selectionKey;