Fix fullscreen text input on Webkit
This commit is contained in:
@@ -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) {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user