#91592Modal not closable using ESC when focus is inside elements of iframe
Description
Having an iframe-modal the Escape key is not bubbled to the parent modal.
Pages loaded inside an iframe should close the parent modal when Escape key is pressed.
Code hint:
function keyPress (e) {
if(!(window === window.parent)) { //check if the parent window exists
if(e.key === "Escape") { // Check if Escape key is pressed
window.parent... // close modal here
}
}
}Reviews 1
History 3
-
Benni Mack changed target version <span data-processor="relativetime" data-value="2020-12-22T11:13:57+00:00" > 12/22/20, 11:13 </span>
-
Michael Telgkamp commented and changed status
NewResolved <span data-processor="relativetime" data-value="2025-10-14T12:13:54+00:00" > 10/14/25, 12:13 </span> -
Benni Mack changed status
ResolvedClosed <span data-processor="relativetime" data-value="2025-12-02T14:36:46+00:00" > 12/02/25, 14:36 </span>
Solved in https://review.typo3.org/c/Packages/TYPO3.CMS/+/88902