You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Konstantin Elstner (JIRA)" <ji...@apache.org> on 2015/11/16 17:03:10 UTC

[jira] [Created] (FLEX-34954) SkinnableTextBase steals focus by callLater(textDisplay.setFocus)

Konstantin Elstner created FLEX-34954:
-----------------------------------------

             Summary: SkinnableTextBase steals focus by callLater(textDisplay.setFocus)
                 Key: FLEX-34954
                 URL: https://issues.apache.org/jira/browse/FLEX-34954
             Project: Apache Flex
          Issue Type: Bug
          Components: Spark: TextArea
    Affects Versions: Apache Flex 4.14.1
            Reporter: Konstantin Elstner
            Priority: Critical


The support class:
spark.components.supportClasses.SkinnableTextBase
has a critical issue in line 1879:
callLater(textDisplay.setFocus)

The usage of call later will lead to possible focus losses in case of environments with out mouse usage.

Examples:
- TextBox added to stage, afterwards a popup / alter is added
- TextBox is added and removed to / from stage
- Alert is opened over textbox, alert close will trigger switch to other component, but text box will be reactivated for a short moment.

All this cases will have a critical focus loss.

Please change in spark.components.supportClasses.SkinnableTextBase
line 1879 to:
textDisplay.setFocus();

By the way:
A callLater workaround is a bad practice to fix some skin state issues, especially only slow computers with possible dropped frames.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)