views:

51

answers:

1

Try the following code:

myListener = new Object();
myListener.onKeyUp = function() {
    if (Key.isDown(Key.CONTROL) && Key.getCode() == 67) {
        //Ctrl+C
        trace("Ctrl+C key down!");
    }
};
Key.addListener(myListener); 

hold ctrl key and start pressing 'c'. From some point you will notice that there is no KEY_UP event fot he 'c' key (there will also be no event for 'a','x','r','v' and maybe more). For most of the button the KEY_UP event will still be dispatched.

Why is that? Is there a solution?

A: 

hey whats wrong with this?

http://stackoverflow.com/questions/3568907/key-up-event-of-ctrl-key-blocks-key-up-event-of-c-key/3569608#3569608

also take sure your flash object is focused on browser page, and browser don't catching your keyboard events.

Regards Eugene

Eugene
try it - it does not work.
Erik Sapir
are you compiling for FP10 and in Flex 4?
Eugene