You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by bilbosax <wa...@comcast.net> on 2019/03/09 01:07:53 UTC

Auto-Correct Oddities

Hi all.  I have noticed that when using a textInput on iOS, if I misspell a
word and auto-correct corrects the spelling and I save myTextInput.text to a
database, the value that gets saved is the original misspelling.  It is as
if the auto-corrected value, although displayed in the textInput, never
actually gets comitted to the text property of the textInput.

Has anyone else experienced this?  It is only by pure chance that I stumbled
across this, as none of us would actually check our database to see if a
word actually got stored the way it was spelled.



--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/

Re: Auto-Correct Oddities

Posted by Erik Thomas <er...@icloud.com>.
It depends on the project type you create in FlexBuilder or IntelliJ. If mobile, it will default to mobile theme, otherwise it defaults so spark. It's unlikely that your project is using spark if you set it up as a mobile project to begin with.

I haven't been enabling auto-correct in my apps because it turned out to be more of an annoyance than helpful when frequent terms are acronyms, product names, or industry vertical terminology. Without auto-correct, you'll still get the suggested words and misspellings will be red underlined. We decided that was the better user experience than frequently correcting what the phone thinks you were trying to say.

$.02

On Mar 12, 2019, at 10:17 AM, kamcknig <ka...@gmail.com> wrote:

Again, I haven't themed much so I'm guessing, and I don't currently have
4.16.1, but in Flex 4.15 if you check the <sdk
dir>/frameworks/flex-config.xml I see that it looks like it's using the
Spark theme. I have no idea if there is anything internally that changes
that when compiling/packaging for mobile though.


<theme>

  <filename>themes/Spark/spark.css</filename>
</theme>

Kyle



--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/



Re: Auto-Correct Oddities

Posted by kamcknig <ka...@gmail.com>.
Again, I haven't themed much so I'm guessing, and I don't currently have
4.16.1, but in Flex 4.15 if you check the <sdk
dir>/frameworks/flex-config.xml I see that it looks like it's using the
Spark theme. I have no idea if there is anything internally that changes
that when compiling/packaging for mobile though.


<theme>
   
   <filename>themes/Spark/spark.css</filename>
</theme>

Kyle



--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/

Re: Auto-Correct Oddities

Posted by bilbosax <wa...@comcast.net>.
Interesting observation kamcknig.  I don't purposely set any theme in my
projects like halo or mobile because I always skin my own components, so
never really paid any attention to themes.  Does anyone know what the
default theme is for a Flex 4.16.1 project?



--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/

Re: Auto-Correct Oddities

Posted by kamcknig <ka...@gmail.com>.
Here is the documentation I referenced mentioning that autoCorrect does not
work for the Spark theme

https://flex.apache.org/asdoc/spark/components/supportClasses/SkinnableTextBase.html#autoCorrect

Kyle



--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/

Re: Auto-Correct Oddities

Posted by kamcknig <ka...@gmail.com>.
I don't know much about this at all but are you using the spark theme? The
apache docs say that this is not supported on the spark theme.

I also saw a bug report that said something about autoCorrect wasn't
working properly  with custom skins (though I think it was a different
issue, but maybe related if you're using one).

That's all the insight I can offer as I haven't really done any mobile
Flex/AIR development.

Kyle



--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/

Re: Auto-Correct Oddities

Posted by bilbosax <wa...@comcast.net>.
I'm surprised I have not heard back anything on this one yet.  It is a simple
group of textInputs for a Sign Up page, I then validate the information and
write it to my database.  Nothing fancy.  But the data that gets written to
the database is what the user actually typed, not any of the auto-corrected
values.  It is as if the auto-corrected values never actually get committed
to the textInput.text property.  I have only tested this on iOS.  This
surely has to be a bug.  I just need to know where to report it.  Do I
report it to the Flex team here at Apache, or do I post it to the AIR team
over at Adobe???



--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/