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

Pressing enter for default button delays firing event

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Adobe Flex SDK 3.0 (Release)
    • None
    • mx: Button
    • None
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Compile and run attached MXML file (or run attached SWF w/ Flash Player 10)
      2. Type into TextInput and then press Enter to trigger defaultButton. RTE.
      3. Dismiss RTE.
      4. Click in the TextInput and press Tab to set focus on the Button.
      5. Press the Space key to trigger the button click event (no RTE).
      6. With the focus still on the Button control, press Enter key. RTE.

      Actual Results:
      RTE:
      Error: Error #2176: Certain actions, such as those that display a pop-up window, may only be invoked upon user interaction, for example by a mouse click or button press.
      at flash.net::FileReference/browse()
      at main/init()[C:\Documents and Settings\pdehaan\My Documents\Flex Builder 3 FXG 4\SDK-16828\src\main.mxml:11]
      at main/__btn_click()[C:\Documents and Settings\pdehaan\My Documents\Flex Builder 3 FXG 4\SDK-16828\src\main.mxml:19]
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.core::UIComponent/dispatchEvent()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:9298]
      at mx.managers::FocusManager/http://www.adobe.com/2006/flex/mx/internal::sendDefaultButtonEvent()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\FocusManager.as:1008]
      at Function/http://adobe.com/AS3/2006/builtin::apply()
      at mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8628]
      at mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8568]

      Expected Results:
      No RTE. I expect enter (on a default button) to work the same as a click.

      Workaround (if any):
      Manually click on the Button control to trigger the FileReference, or tab to the button and press the Space key instead of the Enter key.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: