Issue Bug Closed

#91592Modal not closable using ESC when focus is inside elements of iframe

Michael Telgkamp 06/05/20, 08:03 updated 12/02/25, 14:36

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 0

No change resolves or names this issue in its commit message, and no comment links one.