[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
Tue Feb 3 17:28:55 PST 2009


Hmm, well maybe we should put in a workaround conditionalized for the
IE7 / Win or OSX. It is annoying
when you cut and paste in the app and then the Enter command doesn't
work in the debugger anymore. The workaround is not great, because it
may guess wrong that the command key has been released, but it
is really annoying when the LFC thinks it is stuck down, so I favor
doing this workaround until the Adobe bug
is fixed...


On Tue, Feb 3, 2009 at 8:06 PM, André Bargull <andre.bargull at udo.edu> wrote:
> That's exactly the same problem which was described in [1]. It works as
> expected with WinXP + Firefox/Safari/Opera, it's just the ActiveX Player
> which is broken.
> Max and Tucker found a couple of related flash player bugs [2]. So it's a
> known Adobe issue and therefore LPP-7678 was resolved as "Not Laszlo".
>
> [1] http://www.openlaszlo.org/jira/browse/LPP-7678
> [2] FP-1237, FP-815, FP-891 and FP-106
> (http://bugs.adobe.com/jira/browse/FP-NNNN)
>
> On 2/4/2009 1:41 AM, Henry Minsky wrote:
>>
>> I'm using IE7 on Windows XP, running under Parallels on OSX.
>>
>> Here is a trace in swf9 of the key events that are received by the
>> kernel listener, for two cases
>> of typing "ctrl-c". The first case the control key is pressed and
>> held, then the 'c' key is  pressed then released, and then the control
>> key is released.
>>
>> ctrl-down c-down c-up ctrl-up
>>
>> __keyboardEvent 17 onkeydown ctrlKey: true
>> __keyboardEvent 67 onkeyup ctrlKey: true
>>
>> Note there is no 'c' key down event, but there is a key up event for
>> it. The the value of KeyboardEvent.ctrlKey is true because the ctrl
>> key is still down.
>>
>>
>> I tried another sequence, which might be something that someone types
>> by accident
>> ctrl-down c-down ctrl-up cup
>>
>> __keyboardEvent 17 onkeydown ctrlKey: true
>> __keyboardEvent 17 onkeyup ctrlKey: false
>>
>> In this case there is no "c" key up or down event, but there is a
>> control key up event.
>>
>>
>>
>>
>>
>> On Tue, Feb 3, 2009 at 5:49 PM, André Bargull <andre.bargull at udo.edu>
>> wrote:
>>>
>>> What is the state of KeyboardEvent.ctrlKey in that case and which browser
>>> did you use? Because we know that the IE ActiveX Player has got issues
>>> related to browser short-cuts (LPP-7678 - "<command /> is not working on
>>> IE.").
>>>
>>> On 2/3/2009 11:26 PM, Henry Minsky wrote:
>>>>
>>>> Hmm, in windows I sometimes see kind of the 'reverse' problem, where
>>>> if you type 'ctrl-v',  there
>>>> is a key-up event for the 'v', but one never comes for the 'ctrl'
>>>> key-up.
>>>>
>>
>



-- 
Henry Minsky
Software Architect
hminsky at laszlosystems.com



More information about the Laszlo-dev mailing list