title: Unable to detect delete button of soft keyboard in emulator
body: <p>I am trying to detect back or delete button of soft keyboard using below method. Its working perfectly in physical devices but its not working <code>emulator</code>. Emulator is able to detect all the key events(like enter button, number buttons) expect delete button. On pressing the delete button in emulator neither <code>onKeyDown()</code> nor <code>dispatchKeyEvent()</code> is called.  What can be the problem ?</p>
  
  <p><strong>Purpose of doing this:</strong></p>
  
  <p>I am trying to navigate to previous <code>EditText</code> fields if the user presses delete on the current empty <code>EditText</code> field. That is why I was relying on the <code>dispatchKeyEvent()</code> method.</p>
  
  <p>I am using <strong>Nexus 5X API 25 emulator</strong></p>
  
  <pre><code>public boolean onKeyDown(int keyCode, KeyEvent event) {
          if (keyCode == KeyEvent.KEYCODE_DEL) {
              Log.e(TAG,keyCode)
          }
          return super.onKeyDown(keyCode, event);
      }
  </code></pre>
  
  <p>Here is my layout:</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      tools:context=".MainActivity"&gt;
  
      &lt;EditText
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:focusable="true"
          android:hint="Name" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>Image of the delete button:</p>
  
  <p><a href="https://i.stack.imgur.com/n6ZbY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/n6ZbY.png" alt="enter image description here"></a></p>