title: EditText stop loosing focus on enter key
body: <p>When I press Enter Key EditText Loosing focus </p>
  
  <p>and Listview's first item highlighted BUT no event occurred<br>
  1) No ListView focus change found<br>
  2) No ItemCLick event occurred 
  AND also on scroll ListView Highlighted item disappeared </p>
  
  <p>How I can prevent losing focus of EditText on Enter Key Press and stop highlighting </p>
  
  <p>below is my xml and Java code</p>
  
  <pre><code>&lt;EditText
  android:id="@+id/et_scanitemcode"
  android:layout_width="match_parent"
  android:layout_height="0dp"
  android:layout_weight="60"
  android:background="@drawable/edittext_background"
  android:gravity="right|center_vertical"
  android:maxLines="1"
  android:paddingLeft="5dp"
  android:textColor="@drawable/edittext_color_background" /&gt;
  
  
  &lt;ListView
  android:id="@+id/lst_salesScannedItems"
  android:layout_width="match_parent"
  android:layout_height="match_parent"/&gt;
  
  et_scanitemcode.setOnKeyListener(new EditText.OnKeyListener() {
              public boolean onKey(View v, int keyCode, KeyEvent event) {
                  Log.i("==&gt;",""+KeyEvent.keyCodeToString(event.getAction()));
                  Log.i("==&gt;",""+keyCode);
                  // If the event is a key-down event on the "enter" button
                  //This is the filter
  
  
                  if (event.getAction()==KeyEvent.ACTION_DOWN &amp;&amp; keyCode == KeyEvent.KEYCODE_ENTER) {
                      // Perform action on key press
                      String scanItemCode = et_scanitemcode.getText().toString().trim();
  
  
                      return true;
                  }
                  return false;
              }
          });
  </code></pre>