parent
f6ce5dff74
commit
e3b29a2199
|
@ -80,6 +80,7 @@ H5P.ConfirmationDialog = (function (EventDispatcher) {
|
||||||
// Popup text
|
// Popup text
|
||||||
var text = document.createElement('div');
|
var text = document.createElement('div');
|
||||||
text.classList.add('h5p-confirmation-dialog-text');
|
text.classList.add('h5p-confirmation-dialog-text');
|
||||||
|
text.setAttribute('role', 'alert');
|
||||||
text.innerHTML = options.dialogText;
|
text.innerHTML = options.dialogText;
|
||||||
body.appendChild(text);
|
body.appendChild(text);
|
||||||
|
|
||||||
|
@ -116,6 +117,7 @@ H5P.ConfirmationDialog = (function (EventDispatcher) {
|
||||||
// Exit button
|
// Exit button
|
||||||
var exitButton = document.createElement('button');
|
var exitButton = document.createElement('button');
|
||||||
exitButton.classList.add('h5p-confirmation-dialog-exit');
|
exitButton.classList.add('h5p-confirmation-dialog-exit');
|
||||||
|
exitButton.title = options.cancelText;
|
||||||
exitButton.onclick = dialogCanceled;
|
exitButton.onclick = dialogCanceled;
|
||||||
exitButton.onkeydown = function (e) {
|
exitButton.onkeydown = function (e) {
|
||||||
if (e.which === 32) { // Space
|
if (e.which === 32) { // Space
|
||||||
|
|
Loading…
Reference in New Issue