src/gamejs/display.js
function(event) {
   var wrapper = getCanvas();
   wrapper.requestFullScreen = wrapper.requestFullScreen || wrapper.mozRequestFullScreen || wrapper.webkitRequestFullScreen;
   if (!wrapper.requestFullScreen) {
      return false;
   }
   // @xbrowser chrome allows keboard input onl if ask for it (why oh why?)
   if (Element.ALLOW_KEYBOARD_INPUT) {
      wrapper.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT);
   } else {
      wrapper.requestFullScreen();
   }
   return true;
}
function(event) {
   var wrapper = getCanvas();
   wrapper.requestFullScreen = wrapper.requestFullScreen || wrapper.mozRequestFullScreen || wrapper.webkitRequestFullScreen;
   if (!wrapper.requestFullScreen) {
      return false;
   }
   // @xbrowser chrome allows keboard input onl if ask for it (why oh why?)
   if (Element.ALLOW_KEYBOARD_INPUT) {
      wrapper.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT);
   } else {
      wrapper.requestFullScreen();
   }
   return true;
}
function ( event ) { var wrapper = getCanvas ( ) ; wrapper . requestFullScreen = wrapper . requestFullScreen || wrapper . mozRequestFullScreen || wrapper . webkitRequestFullScreen ; if ( ! wrapper . requestFullScreen ) { return false ; } // @xbrowser chrome allows keboard input onl if ask for it (why oh why?) if ( Element . ALLOW_KEYBOARD_INPUT ) { wrapper . webkitRequestFullScreen ( Element . ALLOW_KEYBOARD_INPUT ) ; } else { wrapper . requestFullScreen ( ) ; } return true ; }
Switches the display window normal browser mode and fullscreen.
@ignore
@returns {Boolean} true if operation was successfull, false otherwise
Switches the display window normal browser mode and fullscreen .