Don't use Chrome only ALLOW_KEYBOARD_INPUT param

This commit is contained in:
Frederic Junod
2018-09-19 11:12:27 +02:00
parent 4d26ab751d
commit 54cdaddf3a

View File

@@ -49,14 +49,6 @@ const getChangeType = (function() {
*/
/**
* TypeScript does not define Element.ALLOW_KEYBOARD_INPUT in the var declaration, and does not support extending those
* declarations. This is a workaround to provide the type.
* @typedef {Object} WebkitElement
* @property {number} [ALLOW_KEYBOARD_INPUT] If keyboard input should be allowed by the Fullscreen API.
*/
/**
* @classdesc
* Provides a button that when clicked fills up the full screen with the map.
@@ -261,7 +253,7 @@ function requestFullScreenWithKeys(element) {
if (element.mozRequestFullScreenWithKeys) {
element.mozRequestFullScreenWithKeys();
} else if (element.webkitRequestFullscreen) {
element.webkitRequestFullscreen(/** @type {WebkitElement} */ (Element).ALLOW_KEYBOARD_INPUT);
element.webkitRequestFullscreen();
} else {
requestFullScreen(element);
}