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

softkeyboard not dismissed when focus changed on android

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • Adobe Flex SDK Previous
    • None
    • Mobile: SoftKeyboard
    • None
    • Affected OS(s): Google Android
      Language Found: English

    Description

      Steps to reproduce:
      1. Open the attached project and run on android (I'm using a Xoom with Android 3.2 and AIR Anza 472)
      2. Click in each of the text input fields and click the enter key (be sure to click out to dismiss the keyboard between each one)

      <?xml version="1.0" encoding="utf-8"?>
      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark" applicationDPI="160">

      <fx:Script>
      <![CDATA[
      import mx.events.FlexEvent;

      protected function textinput1_enterHandler(event:FlexEvent):void

      { //on enter move focus away from the text input and to the button dummyButton.setFocus(); }

      ]]
      >
      </fx:Script>

      <fx:Declarations>
      <!-- Place non-visual elements (e.g., services, value objects) here -->
      </fx:Declarations>
      <s:TextInput x="10" y="10" width="70" needsSoftKeyboard="true" returnKeyLabel="default" text="default" enter="textinput1_enterHandler(event)"/>
      <s:TextInput x="10" y="60" width="70" needsSoftKeyboard="true" returnKeyLabel="done" text="done" enter="textinput1_enterHandler(event)"/>
      <s:TextInput x="10" y="110" width="70" needsSoftKeyboard="true" returnKeyLabel="go" text="go" enter="textinput1_enterHandler(event)"/>
      <s:TextInput x="10" y="160" width="70" needsSoftKeyboard="true" returnKeyLabel="next" text="next" enter="textinput1_enterHandler(event)"/>
      <s:TextInput x="10" y="210" width="70" needsSoftKeyboard="true" returnKeyLabel="search" text="search" enter="textinput1_enterHandler(event)"/>
      <s:Button id="dummyButton" label="dummy button" x="90" y="10"/>

      </s:Application>

      Actual Results:
      On clicking enter, the focus is changed to the button, which should dismiss the softkeyboard, but on android, it remains. This does work on iOS.

      Expected Results:
      Keyboard is dismissed on enter

      Workaround (if any):
      None (setting the focus to something that doesn't use the softkeyboard doesn't seem to work)

      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: