Add support for acquiring/releasing focus within focus callback