From 152a5f956a1ce806628d22c468a550aaca6db8ad Mon Sep 17 00:00:00 2001 From: Frode Petterson Date: Fri, 7 Jun 2013 19:09:10 +0200 Subject: [PATCH] Fixed keyboard in full screen when using webkit. --- js/h5p.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/h5p.js b/js/h5p.js index c7a0909..7888ae4 100644 --- a/js/h5p.js +++ b/js/h5p.js @@ -90,7 +90,7 @@ H5P.fullScreen = function ($el, obj) { $el[0].requestFullScreen(); } else { - $el[0][H5P.fullScreenBrowserPrefix + 'RequestFullScreen'](); + $el[0][H5P.fullScreenBrowserPrefix + 'RequestFullScreen'](H5P.fullScreenBrowserPrefix === 'webkit' ? Element.ALLOW_KEYBOARD_INPUT : undefined); } $el.add(H5P.$body).addClass('h5p-fullscreen');