diff --git a/ui/BankingAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/extensions/EditTextExtensions.kt b/ui/BankingAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/extensions/EditTextExtensions.kt index 30577f6e..4117a473 100644 --- a/ui/BankingAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/extensions/EditTextExtensions.kt +++ b/ui/BankingAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/extensions/EditTextExtensions.kt @@ -5,8 +5,8 @@ import android.widget.EditText fun EditText.addEnterPressedListener(enterPressed: () -> Boolean) { - this.setOnKeyListener { _, keyCode, _ -> - if (keyCode == KeyEvent.KEYCODE_ENTER) { + this.setOnKeyListener { _, keyCode, event -> + if (keyCode == KeyEvent.KEYCODE_ENTER && event.action == KeyEvent.ACTION_UP) { return@setOnKeyListener enterPressed() }