So on the game I'm working on, pressing the Esc key pauses the game and brings the menu (resume, options, quit...), just like in many games on PC.
I wanted to mess with the Browser plugin fullscreen feature. When the player click the Start button in the main menu, I request fullscreen. Works fine and all, except when I press the Esc key to pause my game, the browser exists fullscreen. Weird, I thought the fullscreen toggle key was F11. Plus I remember reading in the manual that Construct prevented the default browser behavior when you assigned an action to a shortcut key.
But then I realized, the default fullscreen key is indeed F11, at least in chrome and firefox. If you press F11 or go to fullscreen using the browser's menu, it does say "press F11 to exit fullscreen" and pressing Esc does not cancel fullscreen. It's only when you request fullscreen through Construct (or more generally javascript I imagine) that Esc becomes the key to exit fullscreen. And since it's not the original default key for fullscreen, having an event assigned to that key in construct does not prevent from leaving fullscreen.
So, is it that a bug or is it like this by design?