Fix space key scrolling page on button expand
parent
9a658ba387
commit
0293d2cdfb
|
@ -1378,6 +1378,7 @@ H5P.openEmbedDialog = function ($element, embedCode, resizeCode, size, instance)
|
||||||
$dialog.find('.h5p-expander').click(expand).keypress(function (event) {
|
$dialog.find('.h5p-expander').click(expand).keypress(function (event) {
|
||||||
if (event.keyCode === 32) {
|
if (event.keyCode === 32) {
|
||||||
expand.apply(this);
|
expand.apply(this);
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}).on('dialog-closed', function () {
|
}).on('dialog-closed', function () {
|
||||||
|
|
Loading…
Reference in New Issue