[Laszlo-dev] getting keydown events for the 'alt' key in Windows

Henry Minsky hminsky at laszlosystems.com
Tue Mar 3 10:23:53 PST 2009


There's a bug reported
(http://www.openlaszlo.org/jira/browse/LPP-7826) which is happening
because on
Windows the Flash player does not send an onKeyDown event when the alt
key is pressed.

It is possible in swf8 to poll for the alt key calling
Key.isDown(Key.ALT), so in theory we could
have an onIdle task which sits around looking for the keypress and
generating a simulated onkeydown event, but
that seems like a real hack.

Also, I don't see anything in swf9 which corresponds to the
Key.isDown() call, so I don't see how to
poll for the alt key in swf9 at all.

I'm leaning towards classifying this bug as "Not Laszlo", as there
does not seem to be any good way to make
the alt key events look like other key press events.





-- 
Henry Minsky
Software Architect
hminsky at laszlosystems.com


More information about the Laszlo-dev mailing list