You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by "Alex Harui (JIRA)" <ji...@apache.org> on 2013/02/05 08:30:14 UTC

[jira] [Updated] (FLEX-33366) The candidate input method can not follow

     [ https://issues.apache.org/jira/browse/FLEX-33366?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Harui updated FLEX-33366:
------------------------------

    Attachment: QQTextInputSkin.mxml
                QQTextAreaSkin.mxml
                QQSparkTextInput.as
                QQSparkTextArea.as
                IMETest.mxml

Attempt at a workaround.  it isn't perfect but might serve as a starting point for a better solution.  IMETest is an example of how to set up the components and the skinclass.  You should be able to also use CSS instead of assigning a skinclass to each instance.

QQSparkTextArea and QQSparkTextInput must use QQTextAreaSkin and QQTextInputSkin.  The custom skins have an extra TextField that is hidden behind the RichEditableText.  When focus is assigned to the component, the TextField momentarily gets focus.  The IME won't follow the cursor exactly, but hopefully it will be acceptable.

QQTextAreaSkin is more complicated because the TextField needs to move vertically otherwise  it will obscure the text being input.  It attempts to watch the position of the blinking cursor and move the TextField under it.  It may not work for complex selection and other scenarios.

I think that's the best I can do for now.  Hope it helps.

                
> The candidate input method can not follow
> -----------------------------------------
>
>                 Key: FLEX-33366
>                 URL: https://issues.apache.org/jira/browse/FLEX-33366
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Spark: TextArea, Spark: TextInput
>    Affects Versions: Apache Flex 4.8 (parity release)
>         Environment: windows,IE8
>            Reporter: zy
>         Attachments: IMETest.mxml, IMETest.zip, QQSparkTextArea.as, QQSparkTextInput.as, QQTextAreaSkin.mxml, QQTextInputSkin.mxml
>
>
> The spark:TextArea and TextInput  Chinese candidate input method can not follow.
> But mx:TextArea and TextInput not this issue.
> I guess you only test the English input method, Chinese input methods all have this problem, it is affecting the user experience.
> you can test this Chinese input method.all chinese use this.
> http://dl_dir.qq.com/invc/qqpinyin/QQPinyin_Setup_1.1.1224.400.exe
> I made a picture to illustrate the problem.
> http://img.my.csdn.net/uploads/201301/24/1359028348_2400.jpg
> If you are unclear, please let me know. I don't know english.I am very sorry.
> Thank you!

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira