Fix Quick Open focus issue

This fixes issue #9981.