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) {
|
||||
if (event.keyCode === 32) {
|
||||
expand.apply(this);
|
||||
return false;
|
||||
}
|
||||
});
|
||||
}).on('dialog-closed', function () {
|
||||
|
|
Loading…
Reference in New Issue