Hi Richard,
Thanks for the response.
Yes, I'm using :
fscommand("trapallkeys", "true");
>What do you get if you log out
> Key.getCode() in this function?
If I try to use a single key like Key.DELETEKEY it works correctly
----------------------------------------------
I create a test fla with the following:
var keyListener:Object = new Object();
keyListener.onKeyDown = function() {
// --- C
if (Key.getCode() == 67 && Key.isDown(Key.CONTROL)) {
keys_txt.text += "COPY " + Key.getCode();
} else
// --- P
if (Key.getCode() == 86 && Key.isDown(Key.CONTROL)) {
keys_txt.text += "PASTE " + Key.getCode();
} else
// --- X
if (Key.getCode() == 88 && Key.isDown(Key.CONTROL)) {
keys_txt.text += "CUT " + Key.getCode();
} else
if (Key.getCode() == Key.ENTER) {
keys_txt.text += "ENTER " + Key.getCode();
}
else {
keys_txt.text += " " + Key.getCode();
}
};
Key.addListener(keyListener);
-----------------------------------------------
keys_txt is a textfield in the _root
in Fireworks all is ok but IE don't show the combinations CTRL + C,
CTRL + V, CTRL + P
I follow testing ...maybe it could be FP8 bug?....
Thanks again for the interest.
C.
2005/12/9, Richard Leggett <[EMAIL PROTECTED]>:
> Have you used fscommand("trapallkeys"); ? What do you get if you log out
> Key.getCode() in this function?
>
> Rich
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of Carlos Rovira
> Sent: 09 December 2005 09:00
> To: Open Source Flash Mailing List
> Subject: [osflash] Combo Key Strokes doesn't work in IE?
>
> Hi guys,
>
> I'm experiencing problems with combinations of keys like "CONTROL - C"
> when I run my SWF in Internet Explorer (while in Firefox all works right),
> I'm searching in the web for some Technote or something but I can't find
> anything.
>
> The code I'm using is :
>
> // --- C + CONTROL (67 is the key code for char "C"
> if (Key.getCode() == 67 && Key.isDown(Key.CONTROL)) {
> copyElements();
> }
>
> Anyone has run into the same problem?
>
> Thanks in advance.
>
> --
> ::| Carlos Rovira
> ::| http://www.carlosrovira.com
>
> _______________________________________________
> osflash mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>
>
> _______________________________________________
> osflash mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>
--
::| Carlos Rovira
::| http://www.carlosrovira.com
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org