Adobe Air 1.0 – Full Screen –> No Keyboard Input

By richardhart

So, you’ve downloaded and installed the official release of Adobe Air 1.0 and are really excited about the new “full screen” feature. We’ll I was really excited too. I wanted to build some games for my kids that I could run fullscreen and disable most of the keys on the keyboard. Sounded great in theory, and so I went off and learned how to full screen an app, which was pretty easy. I then popped in some code to trap the all the keys since so my little onces can’t get into too much trouble pounding on the keyboard.

When the app runs and is not in full screen, the keys get trapped no problem, but when I switched to fullscreen, suddenly, no keyboard access. Combing through the tech notes and blogs at Adobe I was shocked to find that this a known issue or rather decision made by adobe to “protect” naive users. Personally, fullscreen without keyboard access is like throwing the baby out with the bathwater. I hope this decision get reconsidered at some point. Until then, I switched over to making my app go as large as it can without going full screen, which still gives me my keyboard.

Tags: , ,

2 Responses to “Adobe Air 1.0 – Full Screen –> No Keyboard Input”

  1. Tim Paulman Says:

    Richard, If you’re using AIR, you should be looking at the Full_Screen_Interactive setting.

    See David Tucker’s entry here:
    http://www.davidtucker.net/2007/12/15/air-tip-2-going-fullscreen/

  2. richardhart Says:

    Thanks Tim!

    I had been using :

    stage.displayState = StageDisplayState.FULL_SCREEN;

    and as you and David point out if you want keyboard access you need to use:

    stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;

    Cheers,

    Richard

Leave a Reply