You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Justin Mclean (JIRA)" <ji...@apache.org> on 2013/09/19 04:47:51 UTC

[jira] [Resolved] (FLEX-33741) Propagation of Escape key in mx.controls.DateField should only be stopped if the DropDown is shown

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

Justin Mclean resolved FLEX-33741.
----------------------------------

       Resolution: Fixed
    Fix Version/s: Apache Flex 4.11.0

checked into develop branch. DateField tests pass.
                
> Propagation of Escape key in mx.controls.DateField should only be stopped if the DropDown is shown
> --------------------------------------------------------------------------------------------------
>
>                 Key: FLEX-33741
>                 URL: https://issues.apache.org/jira/browse/FLEX-33741
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: mx: DateField
>    Affects Versions: Apache Flex 4.10.0
>            Reporter: Stephan Plath
>            Assignee: Justin Mclean
>            Priority: Minor
>              Labels: easyfix, easytest, patch
>             Fix For: Apache Flex 4.11.0
>
>   Original Estimate: 5m
>  Remaining Estimate: 5m
>
> DateField's keyDownHandler() stops propagation of the Escape key only if it is not editable, but this should only be done if the dropDown is shown, so the parent container gets a chance to handle the Escape key.
> Proposed solution:
> ...
> else if (event.keyCode == Keyboard.ESCAPE)
> {
>     if (showingDropdown)
>     {
>         selectedDate = lastSelectedDate;
>         displayDropdown(false, event);
>         event.stopPropagation();
>     }
> }

--
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