[Laszlo-dev] UPDATED For Review: Change 20090203-hqm-r, Summary: Fix for missing key up events in swf runtime

Henry Minsky henry.minsky at gmail.com
Wed Feb 4 11:36:07 PST 2009


One thing I'm thinking is that if we see a key up and the ctrl flag is
set, we force a ctrl-key-up event.
That would work around  the common case that someone types ctrl-v or
ctrl-c and we get a phantom ctrl key down from then on. In SWF9, the
KeyboardEvent has the ctrlKey flag, and in SWF8 we can
query the Key object for the ctrl-key-down status.

The downside to this workaround is that if you really are holding the
control/command key down, it looks
like it went up, but the browser eats so many command sequences
anyway, and they vary on different
operating systems, that maybe users will not be affected much, if they
learn to press and release the command key for each control command
they type.




>> Can't we infer that if we see up for v with no ctrl modifier that ctrl has
>> been released?
>
> That's the tricky part: when keyup for v is send, the ctrl modifier is still
> set! Just as documented in LPP-7678:
>


More information about the Laszlo-dev mailing list