From 4ca763c0288cee953c4431698f5c6e212ab7d00b Mon Sep 17 00:00:00 2001 From: Alexis Faizeau Date: Wed, 24 Nov 2021 11:05:18 +0100 Subject: [PATCH] Fix tab index on embbed iframes --- front/src/Phaser/Game/EmbeddedWebsiteManager.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/front/src/Phaser/Game/EmbeddedWebsiteManager.ts b/front/src/Phaser/Game/EmbeddedWebsiteManager.ts index 21a38ee5..bf9f14e4 100644 --- a/front/src/Phaser/Game/EmbeddedWebsiteManager.ts +++ b/front/src/Phaser/Game/EmbeddedWebsiteManager.ts @@ -162,6 +162,7 @@ export class EmbeddedWebsiteManager { const iframe = document.createElement("iframe"); iframe.src = absoluteUrl; + iframe.tabIndex = -1; iframe.style.width = embeddedWebsiteEvent.position.width + "px"; iframe.style.height = embeddedWebsiteEvent.position.height + "px"; iframe.style.margin = "0";