1 Reply Latest reply on May 9, 2006 11:32 AM by Newsgroup_User

    trapAllKeys not trapping OSX keyboard shortcuts

    flasher36
      Anybody out there working with the FlashPlayerSA for OSX? By using "trapAllKeys" I can detect keyDown events on the CMD (apple) key as well as all the regular alphanumeric keys. I can also detect "unresrved " key combinations. I can't seem to find a way to trap when the user hits a key combination that is reserved by the operating system. ( i.e. CMD+h, CMD+q, CMD+f)

      Ideally I'd like to find a way to disable these reserved keyboard shortcuts. Any Ideas?
        • 1. Re: trapAllKeys not trapping OSX keyboard shortcuts
          Level 7
          i had the same problem recently in Windows where Alt+F4 is not trapped.
          so we needed to embed the Flash movie in Director

          i guess Director, Zinc, SWF Studio, ... are the only solution as the
          Flash player seems to never receive those keys )-:


          flasher36 wrote:

          > Anybody out there working with the FlashPlayerSA for OSX? By using
          > "trapAllKeys" I can detect keyDown events on the CMD (apple) key as well as all
          > the regular alphanumeric keys. I can also detect "unresrved " key
          > combinations. I can't seem to find a way to trap when the user hits a key
          > combination that is reserved by the operating system. ( i.e. CMD+h, CMD+q,
          > CMD+f)
          >
          > Ideally I'd like to find a way to disable these reserved keyboard shortcuts.
          > Any Ideas?
          >