Hello,
My goal is to know when a user presses the cut, copy, paste, or select all keyboard shortcuts and do some processing for each one. I tried listening for the keypresses, but only some keys are fired when the control key is down (apparently it would work only in the browser, except for IE).
Then I was reading the Flash docs and came across the Event.COPY, Event.PASTE, and Event.CUT events that are dispatched to the "object that currently has focus". I attached listeners to the document class for these events and set stage.focus to the document class, but my event listeners never get called.
Has anyone used these events? Is there an example somewhere on how to use them?
Note: This is in Flash Player 10 (both the internal CS4 one (with "Disable Shortcuts" checked off) and the stand-alone one). I have not tried it in any browser.