You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Shigeru Nakagaki (JIRA)" <ji...@apache.org> on 2014/06/17 08:46:02 UTC

[jira] [Commented] (FLEX-34372) Disabled form gets focus and key events

    [ https://issues.apache.org/jira/browse/FLEX-34372?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14033494#comment-14033494 ] 

Shigeru Nakagaki commented on FLEX-34372:
-----------------------------------------

FocusManager#activate() should not setFocus(_lastFocus) if the target (or the container) is disabled.
It will be better to find the next focus target rather than setting a focus to last target.

An avoid way for this issue.

  this.panel.enables = false;
  FocusManager(this.panel.focusManager).mx_internal::lastFocus = null;


It is also a problem that FocusManager does not care about the ability of the last focus target to set a focus .

> Disabled form gets focus and key events
> ---------------------------------------
>
>                 Key: FLEX-34372
>                 URL: https://issues.apache.org/jira/browse/FLEX-34372
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Focus Manager
>    Affects Versions: Apache Flex 4.11.0
>         Environment: Windows 7 64bit Japanese, Adobe AIR 3.8.0.1430
>            Reporter: Shigeru Nakagaki
>         Attachments: DisabledFocusTest_src.zip
>
>
> A form which "enabled" is false gets focus and key events
> Step 1 : build an attached source
> Step 2 : input "bbb" at second s:TextInput
>     A pop-up opens.
> Step 3 : Click the s:TextInput of Step 2
>     It gets focus.
> Step 4 : Press "ENTER" key
>     it gets key events.



--
This message was sent by Atlassian JIRA
(v6.2#6252)