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

Propagation of Escape key in mx.controls.DateField should only be stopped if the DropDown is shown

    XMLWordPrintableJSON

Details

    Description

      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(); }

      }

      Attachments

        Activity

          People

            jmclean Justin Mclean
            plathine Stephan Plath
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 5m
                5m
                Remaining:
                Remaining Estimate - 5m
                5m
                Logged:
                Time Spent - Not Specified
                Not Specified