[Laszlo-dev] trying to work around textfield keymapping problem when wmode="transparent"

Candide Kemmler ckemmler at gmail.com
Thu Apr 24 14:41:09 PDT 2008


yes indeed, incredible!

Follows the most convincing way I got to circumventing the problem... The
map here is just nonsense, but if it wasn't this could have been a good
lead. Anyway, I can't imagine a way to get this map... One could use the
language from the http headers, but that wouldn't necessarily reflect the
keyboard layout.

I have also tried to programmatically generate keystrokes, but this is of
course not possible because of security reasons. Too bad

Really it's pure madness that Adobe/Macromedia haven't fixed this yet. It's
even hard to imagine they're not doing this on purpose

        <handler name="onkeydown" reference="LzKeys" args="k"><![CDATA[
            var map = {65:"&",90:"@"};
            var position = getSelectionPosition();
            var length = getSelectionSize();
            if (k==8||k==46)
                this.correcttext.splice(position, length>0?length:1);
            else
                this.correcttext.splice(position, length, map[k]);
        ]]></handler>


On Thu, Apr 24, 2008 at 9:01 PM, David Temkin <temkin at laszlosystems.com>
wrote:

> The bad news is that this is a Flash Player bug. It is only present in
> non-ActiveX (non-IE) browsers. Adobe is definitely aware of it, and (we
> hope) working toward resolution in a future player.
>
> We don't know of any workaround that works with Flash 8 APIs. When Flash 9
> support is complete, it may be possible to work around it. Or not. :-(
>
> - D.
>
>
>
> On Thu, Apr 24, 2008 at  3:05 AM, Candide Kemmler wrote:
>
> Hi,
>
> You are probably aware of this very annoying bug of the flash player: when
> wmode is set to "transparent", text fields are wrongly mapped for non-US
> keyboards.
> To fix it, I thought I could try to replace the text showing in the field
> on the fly. I have tried to setText, clearText, addText, etc but all these
> reset the caret position to the first character. My last hope is to access
> the underlying flash API. I have seen indeed that the text field API for
> flash 9 features a replaceText method. I just hope it already existed in AS2
> and that it's accessible from OL.
>
> Can you please help or otherwise give me some advice on ways to resolve
> this issue?
>
> Candide
>
> --
> Candide Kemmler
> *http://www.palacehotel.org/* <http://www.palacehotel.org/>
> 11/13 avenue Reine Marie-Henriette
> 1190 Bruxelles
> mobile:+32485067980
>



-- 
Candide Kemmler
http://www.palacehotel.org/
11/13 avenue Reine Marie-Henriette
1190 Bruxelles
mobile:+32485067980
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20080424/4c1a0257/attachment.html


More information about the Laszlo-dev mailing list