Fix fullscreen text input on Webkit

This commit is contained in:
Joshua Granick
2018-04-03 09:38:10 -07:00
parent 8edcc8ff82
commit ecba26e560

View File

@@ -829,7 +829,11 @@ class HTML5Window {
untyped (textInput.style).pointerEvents = 'none'; untyped (textInput.style).pointerEvents = 'none';
textInput.style.zIndex = "-10000000"; textInput.style.zIndex = "-10000000";
Browser.document.body.appendChild (textInput); }
if (textInput.parentNode == null) {
element.appendChild (textInput);
} }
@@ -894,7 +898,6 @@ class HTML5Window {
document.addEventListener ("webkitfullscreenchange", handleFullscreenEvent, false); document.addEventListener ("webkitfullscreenchange", handleFullscreenEvent, false);
document.addEventListener ("webkitfullscreenerror", handleFullscreenEvent, false); document.addEventListener ("webkitfullscreenerror", handleFullscreenEvent, false);
element.webkitRequestFullscreen (); element.webkitRequestFullscreen ();
document.documentElement.webkitRequestFullScreen (Element.ALLOW_KEYBOARD_INPUT);
} else if (element.msRequestFullscreen) { } else if (element.msRequestFullscreen) {