Fix space key scrolling page on button expand

pull/69/head
Frode Petterson 2019-10-17 13:01:55 +02:00
parent 9a658ba387
commit 0293d2cdfb
1 changed files with 1 additions and 0 deletions

View File

@ -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 () {