Fixed an issue with Core::setFocusTo() [ci skip].