issue #21672: Automatically figure out where to set focus.