I think if you remove all the nodes except for A and B the panels will automatically focus; did you try it?
Well the doc
says you shouldn't do that. But they don't say how to accomplish what you want, that's annoying! Maybe you can send left key presses w ECP to do it?