Hi,
as described here
"... An application can prevent the fullscreen state to be left when ESC is pressed by requesting the app.window.fullscreen.overrideEsc permission and canceling the event by calling .preventDefault()..."
but if i try to add the permission "app.window.fullscreen.overrideEsc" to file manifest.json, loading the unpackaged app i get the error
"Permission 'app.window.fullscreen.overrideEsc' is unknown or URL pattern is malformed."
I tried also to not include this permssion and i inserted this code on my js file
window.onkeydown = function (e) {
if (e.keyCode == 27 /* ESC */ ) {
e.preventDefault();
chrome.app.window.current().close();
}
};
but ESC key is not overridden and my app window back to normal mode (from fullscreenmode)
Anybody can help me?
Thank you for any suggestion!
Lewix