This is sort of different from selected. Selected is when someone mashes the enter button or clicks on a node. Highlighted is when the cursor moves into a new node. See #1400.
I'm about to work on #1400 and it seems like a good idea to put some tests in place first to ensure nothing gets disturbed.