Space support.
parent
fabde2f1ce
commit
037e26f42b
|
@ -766,7 +766,7 @@ H5P.openEmbedDialog = function ($element, embedCode, resizeCode, size) {
|
||||||
}).select();
|
}).select();
|
||||||
|
|
||||||
// Expand advanced embed
|
// Expand advanced embed
|
||||||
$dialog.find('.h5p-expander').click(function () {
|
var expand = function () {
|
||||||
var $expander = H5P.jQuery(this);
|
var $expander = H5P.jQuery(this);
|
||||||
var $content = $expander.next();
|
var $content = $expander.next();
|
||||||
if ($content.is(':visible')) {
|
if ($content.is(':visible')) {
|
||||||
|
@ -778,6 +778,11 @@ H5P.openEmbedDialog = function ($element, embedCode, resizeCode, size) {
|
||||||
$content.show();
|
$content.show();
|
||||||
}
|
}
|
||||||
positionInner();
|
positionInner();
|
||||||
|
};
|
||||||
|
$dialog.find('.h5p-expander').click(expand).keypress(function (event) {
|
||||||
|
if (event.keyCode === 32) {
|
||||||
|
expand();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue