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

Spark TextInput and TextArea components do not dispatch keyboard events for ENTER key.

    XMLWordPrintableJSON

Details

    Description

      Steps to reproduce:
      1. Create an application with a spark TextInput (or TextArea) component on it;
      2. Register keyUp or keyDown listener (use bubbling phase) with the text input or application itself;
      3. In the handler put a trace statement for the event.keyCode like: trace ("Key pressed: " + event.keyCode);
      4. Run the application in debug mode, click on a text box and press ENTER key.

      Actual Results:
      The handler is not called and trace statement is not executed: keyboard event is not dispached (or maybe is stopped) by the TextInput component.

      Expected Results:
      Handler should be called and trace statement should be executed giving the following text in the output: "Key pressed: 13".

      Workaround (if any):
      Use capturing phase instead of bubbling phase.

      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: