<NME> EditUtils.java
<BEF> ADDFILE
<MSG> fix #606: Use enter key to invoke action in one line input fields
<DFF> @@ -0,0 +1,40 @@
+package cgeo.geocaching.utils;
+
+import android.view.KeyEvent;
+import android.view.View;
+import android.view.inputmethod.EditorInfo;
+import android.widget.EditText;
+import android.widget.TextView;
+
+public final class EditUtils {
+
+    public static void setActionListener(final EditText editText, final Runnable runnable) {
+        editText.setOnEditorActionListener(new TextView.OnEditorActionListener() {
+
+            @Override
+            public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
+                if (actionId == EditorInfo.IME_ACTION_GO) {
+                    runnable.run();
+                    return true;
+                }
+
+                return false;
+            }
+        });
+
+        editText.setOnKeyListener(new View.OnKeyListener() {
+
+            @Override
+            public boolean onKey(View v, int keyCode, KeyEvent event) {
+                // If the event is a key-down event on the "enter" button
+                if ((event.getAction() == KeyEvent.ACTION_DOWN) && (keyCode == KeyEvent.KEYCODE_ENTER)) {
+                    runnable.run();
+                    return true;
+                }
+                return false;
+            }
+        });
+
+    }
+
+}

fix #606: Use enter key to invoke action in one line input fields