title: How to get EditText, IME Action, textMultiLine, to work for JellyBean
body: <p>I've run into quite the conundrum and am failing to find a solution. Apparently JellyBean changes how IME actions are handled. I've found many websites offering a solution which indeed works but only for single lined <code>EditTexts</code>.  Example: <a href="https://stackoverflow.com/questions/11311790/oneditoraction-is-not-called-after-enter-key-has-been-pressed-on-jelly-bean-em">Stackoverflow: onEditorAction</a></p>
  
  <p>My <code>EditText</code> widgets worked perfectly until JellyBean. It would properly word-wrap until the user hit the "Done" (return) key. Then it'd catch the event with the <code>OnEditorActionListener</code> and process accordingly.  I've tried multiple variations of changing the settings with the following XML attributes to no avail:</p>
  
  <ul>
  <li>singleLined</li>
  <li>scrollHorizontally</li>
  <li>inputType</li>
  <li>imeOptions</li>
  <li>lines</li>
  </ul>
  
  <p>I could only get word-wrapping with no onEditorAction event fired or no word-wrapping with the onEditorAction event firing. How can I get word-wrapping and handle the softkeyboard enter key at the same time for JellyBean?</p>
  
  <p><strong>Update 1:</strong> Including requested code. Note this is how it stands now which works for all platforms except JellyBean. As I said earlier, tried multiple different XML settings to no avail.</p>
  
  <p><strong>Update 2:</strong> Managed to get a hold of an Asus Transformer running JellyBean 4.1.1. Works fine. So perhaps this is a device specific bug? My other JellyBean device is a Nexus 7 running 4.1.2. Can anyone verify this with other devices?</p>
  
  <p>Code:
      </p>
  
  <pre><code>private class OnMyEditorActionListener implements OnEditorActionListener {
      public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
          if (actionId == EditorInfo.IME_ACTION_GO) {
              doSomething();
              return true;
          }
          return false;
      }
  }
  </code></pre>
  
  <pre class="lang-html prettyprint-override"><code>&lt;EditText
      android:id="@+id/editbox_box_et"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:background="@null"
      android:gravity="top|center_horizontal"
      android:imeOptions="actionGo"
      android:inputType="textMultiLine|textNoSuggestions"
      android:padding="@dimen/spacing_half"
      android:textSize="24sp" &gt;
  &lt;/EditText&gt;
  </code></pre>