I\'ve attached an OnKeyListener to an EditText. I\'ve overrode the onKey handler to capture a KeyEvent.
When a user hits the enter key (either their computer enter
This event is fired by KeyEvent.ACTION_DOWN and KeyEvent.ACTION_UP. I have done debugging and finally I realize that there is an param called KeyEvent event that I never use, then I checked and found the problem.
KeyEvent.ACTION_DOWN
KeyEvent.ACTION_UP
KeyEvent event