Workaround for Go to Class window loses focus during typing
(cherry picked from commit 539179a)