Actions
Bug #91592
openEpic #91518: Keyboard usage in the TYPO3 backend
Modal not closable using ESC when focus is inside elements of iframe
Status:
New
Priority:
Must have
Assignee:
-
Category:
Backend JavaScript
Target version:
Start date:
2020-06-05
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
accessibility, keyboard
Complexity:
Is Regression:
Sprint Focus:
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
}
}
}
Actions