Don't use Chrome only ALLOW_KEYBOARD_INPUT param
This commit is contained in:
@@ -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
|
* @classdesc
|
||||||
* Provides a button that when clicked fills up the full screen with the map.
|
* Provides a button that when clicked fills up the full screen with the map.
|
||||||
@@ -261,7 +253,7 @@ function requestFullScreenWithKeys(element) {
|
|||||||
if (element.mozRequestFullScreenWithKeys) {
|
if (element.mozRequestFullScreenWithKeys) {
|
||||||
element.mozRequestFullScreenWithKeys();
|
element.mozRequestFullScreenWithKeys();
|
||||||
} else if (element.webkitRequestFullscreen) {
|
} else if (element.webkitRequestFullscreen) {
|
||||||
element.webkitRequestFullscreen(/** @type {WebkitElement} */ (Element).ALLOW_KEYBOARD_INPUT);
|
element.webkitRequestFullscreen();
|
||||||
} else {
|
} else {
|
||||||
requestFullScreen(element);
|
requestFullScreen(element);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user