title: OnEditorActionListener not working
body: <p>I simply want to catch the event when the user press enter on an editText.</p>
  
  <p>I did not get the Toast message, not the "Enter pressed" and not the "Some key pressed!" either.</p>
  
  <p>What m i doing wrong?</p>
  
  <pre><code>myEditText.setOnEditorActionListener(new OnEditorActionListener() {
  
      @Override
      public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
  
     Toast.makeText(getApplicationContext(), "Some key pressed!", Toast.LENGTH_LONG).show();
  
          if (event != null &amp;&amp; (event.getKeyCode() == KeyEvent.KEYCODE_ENTER)) {
               Toast.makeText(getApplicationContext(), "Enter pressed", Toast.LENGTH_LONG).show();
                  return true;
                  }
                  return false;
              }
          });
  </code></pre>
  
  <p>E D I T :</p>
  
  <p><strong>Well it is working on Android 2.3.3 and not working on 4.1.2</strong>
  Any ideas how can i make this work on any android device?</p>