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

Max Carlson max at openlaszlo.org
Tue Mar 3 19:09:39 PST 2009


We _could_ go out side of flash and report keys from JavaScript - but 
the browser has its own set of issues around keyboard events...

Henry Minsky wrote:
> 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.
> 
> 
> 
> 
> 

-- 
Regards,
Max Carlson
OpenLaszlo.org


More information about the Laszlo-dev mailing list