CTRL + V detection using AS3 in IE

I cannot detect the Ctrl V keyboard event in swf using AS3 in IE. This seems to trigger the default browser behavior, and I can't do anything ... Any workaround for this?

+4
source share
2 answers

If this is the behavior of the browser you are tripping on, you can write JavaScript to prevent it. There is another related publication about capturing key events in JS and transferring them to flash. See my answer here and focus on the preventDefault() . You should just extract what you don’t need in the code and leave something like

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

Of course, you will need to import the jQuery library .

+2
source
0
source

All Articles