Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-24275

Dispatch cancellable event from UIComponent.setFocus()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Adobe Flex SDK 4.0 (Release)
    • None
    • Focus Manager
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Currently there is no way to prevent component to gain focus if it wishes so.
      Calling uiComponent.setFocus() will always assign stage.focus to this component.

      It's useful to prevent child components from gaining focus in some cases.

      There is a workaround for this - watching focusIn event in a parent component and switching stage.focus to event.relatedObject, but it makes focus rectangle jump and looks quite ugly.

      Attachments

        Activity

          People

            Unassigned Unassigned
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: