Adding event listener to looker iframe

Hi, is it possible to add addEventListener() method on the iframe with the embed looker page? On my React page I have a search modal that should be opened by pressing the K + command. Everything works fine until I click on the embed looker iframe on the same page. At this point, it looks like the iframe is catching focus and my global event listener doesn’t work. 

I’ve added the embed domain to the allowlist and embed_domain to the end of the embed URL (https://cloud.google.com/looker/docs/embedded-javascript-events), but I’m still blocked by the CORS policy. Is there any workaround for this case?

0 0 581