From 54cdaddf3a6a67b4082bf047f4203faaf92950ab Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Wed, 19 Sep 2018 11:12:27 +0200 Subject: [PATCH] Don't use Chrome only ALLOW_KEYBOARD_INPUT param --- src/ol/control/FullScreen.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/ol/control/FullScreen.js b/src/ol/control/FullScreen.js index dd25385f45..c953ec71c5 100644 --- a/src/ol/control/FullScreen.js +++ b/src/ol/control/FullScreen.js @@ -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); }