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

View no longer receives keyboard events when ActionBar has focus

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Not A Problem
    • Adobe Flex SDK Previous
    • None
    • Mobile: ActionBar
    • None
    • Affected OS(s): Google Android
      Language Found: English

    Description

      Using FlashBuilder 4.5 i6 drop 2, Flex SDK build 4.5.0.20834

      Steps to reproduce:

      1. Create a Flex Mobile project for Android

      2. Add this view:

      <?xml version="1.0" encoding="utf-8"?>
      <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark"
      title="HomeView"
      keyDown="view1_keyDownHandler(event)">

      <fx:Script>
      <![CDATA[
      import mx.events.FlexEvent;
      protected function view1_keyDownHandler(event:KeyboardEvent):void

      { trace(event.target, event); }

      ]]
      >
      </fx:Script>

      <s:actionContent>
      <s:Button width="100%">Button</s:Button>
      </s:actionContent>

      </s:View>

      3. Run the project on the desktop

      4. Press any key -> KeyboardEvent is received by the view

      5. Click the button

      6. Press any key -> KeyboardEvent is not received by the view

      Workaround (if any):

      In a creationComplete handler of the view, add an identical event listener to navigator.actionBar

      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: