Using arrow keys to change focus between nodes in editor

Godot Version



When I press the up and down arrow keys in the Godot editor it changes focus to the next/previous node in the hierarchy. But only sort of, it does not change the selection and the node will not appear in EditorSelection.GetSelectedNodes. How do I get the nodes that are “half selected” from an editor script and why is this even a thing? Is there an option to just make arrow keys change selection completely instead (blue marker)?

Secondly, when the mouse enters the scene view, the focus is changed to the scene view, which means the arrow keys now move the transform around instead. Is there any way to turn this autofocus off?