flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fréderic Cox <coxfrede...@gmail.com>
Subject Re: iOS mobile keyboard TLF support
Date Sat, 04 Jun 2016 12:18:10 GMT
Thanks Josh, I have reached out to Chris Campbell on this issue via Twitter. Hope it helps.
Others on this mailinglist please vote for the bug https://bugbase.adobe.com/index.cfm?event=bug&id=3962712

Verstuurd vanaf mijn iPhone

> Op 3 jun. 2016 om 16:24 heeft Josh Tynjala <joshtynjala@gmail.com> het volgende
> There is currently no way to make AIR show a soft keyboard on iOS for
> anything except a TextField or StageText that is in focus. I've been
> pushing Adobe to support the existing InteractiveObject needsSoftKeyboard
> and requestSoftKeyboard() APIs on iOS that are currently Android-only.
> https://bugbase.adobe.com/index.cfm?event=bug&id=3962712
> You might be able to give a hidden TextField focus and listen for its
> events. It's pretty hacky, so I've avoided it.
> - Josh
> On Jun 3, 2016 1:25 AM, "Fréderic Cox" <coxfrederic@gmail.com> wrote:
> I'm not really familiar with ANE development but I will keep your
> suggestion in mind. But is it not possible to display and edit HTML on
> mobile? This looks like a big shortcoming to me. Surely there has to be an
> option to raise the keyboard and proxy the key events to a RichEditableText
> component?
> I don't want to end up using an ANE or a webview with JS based HTML editor
> if I can avoid it. I'm just a bit stunned that AIR is missing HTML
> functionalities for textarea's on mobile. I am willing to sacrifice
> performance if anyone has a way or workaround to get this done.
>> On Thu, Jun 2, 2016 at 4:44 PM, Josh Tynjala <joshtynjala@gmail.com> wrote:
>> I've never tried this, but I wonder if you could create an ANE to manually
>> open and close the soft keyboard on iOS. If something on stage has focus,
>> it may still dispatch KeyboardEvents, even if AIR isn't the one that
> showed
>> the soft keyboard.
>> - Josh
>> On Thu, Jun 2, 2016 at 5:56 AM, Fréderic Cox <coxfrederic@gmail.com>
>> wrote:
>>> Hi,
>>> I am currently working on a project where I have a TLFEditor to put a
>>> textarea's text in bold/italic/underline, change font size/color etc..
>>> It works fine on desktop but not on mobile.
>>> Option 1 is to use skinClass = spark.skins.spark.TextAreaSkin but then
>> the
>>> keyboard on iOS does not show.
>>> Option 2 is to use the default mobile skin but then TLF is not
> supported.
>>> It is a product description component in which the user only needs to
>> add a
>>> small amount of text so the performance overhead for TLF is not an issue
>>> here. Just need to find a way to open the keyboard so the keyboard input
>> is
>>> accepted. Does anyone have a solution or workaround?
>>> I've spent almost 6 hours on this issue alone today .. I know
>>> requestSoftKeyboard() is not available on iOS and I've also tried
> setting
>>> stage.focus = textDisplay but nothing works on the device.
>>> Any help/workarounds are greatly appreciated!

View raw message