add spy object to test focus event and change inference warning to choose active editor vs focused editor
Merge pull request #10140 from adobe/jeff/fix-focus-tests-9972

Fix editor focus issues for CEF 2171