Change the return value of the onEditorAction
method from true
to false
.
Actually, I think the method is called twice because of the KeyEvent
. Try logging the type of the arg2
parameter to check it. If you confirm this, instead of returning false
, you can add an if/else to check the correct event.