when I press Enter in an EditText (password) it goes to a new line then if executes the setOnEditorActionListener
<p>when I press Enter in an EditText (password) it goes to a new line then if executes the setOnEditorActionListener so my password will be incorrect (bcz the Enter is added).
any solution plz ?</p>

<p>EDIT:
when I added: android:singleLine="true" the button "Enter" in the phone's keyboard will be replace with "Done"
so how to keep the button "Enter" when I add android:singleLine="true".</p>
