views:

437

answers:

2

I am not able to detect the keyboard event CTRL+V on a swf using AS3 in IE. It seems to trigger the default browser behavior, and im not able to do anything... Any workaround for this?

A: 

Have you tried Clipboard.generalClipboard?

dirkgently
+1  A: 

If it's a browser behavior you're stumbling on, you can write some JavaScript to prevent it. There's another related post, about capturing key events in JS and relaying them to flash. See my reply here and focus on the preventDefault() part. You should just take out what you don't need of the code and leave something like

$(document).ready(function() {
    $(document).keydown(function (event) { event.preventDefault(); });
}

Of course, you'll have to import the jQuery library.

evilpenguin