Issue in EditText setOnKeyListener
<p>I have an <code>EditText</code>. On an <code>setOnKeyListener</code> of an <code>EditText</code> i want to perform the following action.</p>

<ol>
<li><p>On click of Done button of keyboard i want to display something in my <code>TextView</code>.</p></li>
<li><p>On click of other button not the done button i want to make the <code>TextView</code> blank.</p></li>
</ol>

<p>So for that i write the code but it works for click of done button but not for other button. so can anyone help me to solve this out.</p>

<p><strong>My Code</strong></p>

<pre><code>    EditText.setOnKeyListener(new OnKeyListener() 
    {
        public boolean onKey(View v, int keyCode, KeyEvent event) 
        {           
            if ((event.getAction() == KeyEvent.ACTION_DOWN) &amp;&amp; (keyCode == KeyEvent.KEYCODE_ENTER))
            {                             

                  m_passwrdErrorText.setText(m_res.getString(R.string.passwrd_error_text));
            }
            else
            {
                  m_passwrdErrorText.setText("");
            }
            return false;
        }

  });
</code></pre>
