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

P T Withington ptw at pobox.com
Wed Feb 4 12:08:35 PST 2009


I'm tempted to agree so long as you are careful to insert ctrl-down  
before any subsequent key-down where you find control is still set.   
And maybe you should not do any insertion if the other key is only a  
modifier key?  Consider shift chords that are modifying a mouse gesture.


On 2009-02-04, at 14:36EST, Henry Minsky wrote:

> 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