[Laszlo-dev] UPDATED For Review: Change 20090203-hqm-r, Summary: Fix for missing key up events in swf runtime
André Bargull
andre.bargull at udo.edu
Tue Feb 3 14:49:06 PST 2009
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.
>
> So I think I need to put something into the keyboard kernel key-up
> handler, which explicitly checks the
> value of the 'ctrl' key and if it disagrees with the last received
> value, sends a keyup event for it to the LFC.
>
>
>
>
>
>
> On Tue, Feb 3, 2009 at 4:04 PM, Henry Minsky <hminsky at laszlosystems.com> wrote:
>> I will check and see if there is a similar problem in Windows with
>> missing key up events for the control key.
>>
>>
>>
>>
>> On Tue, Feb 3, 2009 at 3:58 PM, André Bargull <andre.bargull at udo.edu> wrote:
>>> If that problem is limited to MacOS, you should also restrict that patch to
>>> MacOS, shouldn't you?
>>> Something like:
>>> const isMac:Boolean = flash.system.Capabilities.os.indexOf("|Mac OS") != -1;
>>> if (isMac && kC == this.keyCodes.control) {
>>> ...
>>> |
>>>
>>>> previous change failed to actually send the keyUp event for the command
>>>> key itself.
>>>>
>>>>
>>>>
>>>> Change 20090203-hqm-r by hqm at badtzmaru.home on 2009-02-03 13:16:39 EST
>>>> in /Users/hqm/openlaszlo/trunk-clean
>>>> for http://svn.openlaszlo.org/openlaszlo/trunk
>>>>
>>>> Summary: Fix for missing key up events in swf runtime
>>>>
>>>> New Features:
>>>>
>>>> Bugs Fixed: LPP-7012
>>>>
>>>> Technical Reviewer: max
>>>> QA Reviewer: (pending)
>>>> Doc Reviewer: (pending)
>>>>
>>>> Documentation:
>>>>
>>>> Release Notes:
>>>>
>>>> Details:
>>>>
>>>> In swf-runtime/MacOS, if you press a key sequence like 'command' 'v'
>>>> (paste) or 'command' 'c' (copy), the kernel will not receive a key up
>>>> event for the 'v' or 'c'. It does however get the 'command' key-up
>>>> event, so this patch makes the keyboard service clear all down keys
>>>> from it's downKeysHash table when it gets a 'command' key up event.
>>>>
>>>> This fixes the problem in the debugger where keyboard commands like
>>>> 'enter'
>>>> no longer respond.
>>>>
>>>> It does have the effect of making the model of the down keys slightly
>>>> wrong; if the user presses 'v', then 'command', and then releases the
>>>> 'command' key, the 'v' key will be regarded as having gone up also.
>>>>
>>>> But I think that this is better than the system thinking that the key
>>>> remains down indefinitely, which screws up the behavior LzCommand
>>>> bindings.
>>>>
>>>>
>>>> Tests:
>>>>
>>>> + debugger input field still responds to "enter" and up and down arrow
>>>> keys, even
>>>> after using copy (command-c) and paste(command-v) keyboard commands in
>>>> MacOS/SWF runtime.
>>>>
>>>>
>>>>
>>>> Files:
>>>> M WEB-INF/lps/lfc/services/LzKeys.lzs
>>>>
>>>> Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20090203-hqm-r.tar
>>>>
>>>>
>>
>>
>> --
>> Henry Minsky
>> Software Architect
>> hminsky at laszlosystems.com
>>
>
>
>
More information about the Laszlo-dev
mailing list