Hi,
The application I am working on runs in full screen mode have keydown event
handler at the application level. Whenever it receives a ctrl key down event,
focus is passed to the html window which wraps the application through an
ExternalInterface call. The window also has a keydown handler which detects the
next key
down event, then it passes this event to flex. This is a sort workaround to
implement keyboard shortcuts for our application when it runs in IE7 because
IE7 would block
most of the ctrl key shortcuts for an activeX plug-in.
After some debugging, I found that The ctrl key down event would reach flex
but after that any other key down event would not reach flex if it was a
keyboard shortcut for
IE7, which again is a selective passing of keyboard events to the activeX
plug-ins by IE7. In that case, is there any other way apart from the approach I
am following to prevent
IE7 from blocking the ctrl keyboard events to Flash player plug-in ?
Thanks,
Peeyush Tuli
MetaDesign Solutions
----- Original Message -----
From: Alex Harui
To: [email protected]
Sent: Friday, October 12, 2007 11:40 PM
Subject: RE: [flexcoders] ALTGr key gives two keyboard events
IE hands the activeX plug-ins two keystrokes. What JS keyboard event
handling are you talking about?
------------------------------------------------------------------------------
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of
Peeyush Tuli
Sent: Friday, October 12, 2007 6:14 AM
To: [email protected]
Subject: [flexcoders] ALTGr key gives two keyboard events
Hi all,
I have to implement keyboard ctrl key shortcuts for an application which
should run among other browsers, IE7 also. Now IE7 consumed most of the ctrl
key shortcuts not allowing flash player access to them. I read about the usage
of Javascript to block the event and pass control to the flex application using
external interface. So far .. So good.
This application is targeted at swedish users who would use a swedish
keyboard layout, where the ALTGr key is used for typing in characters like @.
Interestingly, pressing the ALTGr key down generates two events in my keydown
handler, one for an ctrl key and one for a alt key, in the same sequence. This
interferes with the javascript based keyboard event handling mechanism already
in place for the ctrl key.
The ALTGr key press is working fine on FireFox, implying that flex is
handling ALTGr as key combination, rather as one key. I tried to simulate the
behaviour by dispatching simultaneous ctrl and alt key events, but it doesent
work.
Can someone from Adobe confirm about this behavior and any suggestions of how
to deal with it?
Regards,
Peeyush Tuli
MetaDesign Solutions