title: Android: Backspace in WebView/BaseInputConnection
body: <p>I have a problem with soft keyboard backspace in Android (4.2).</p>
  
  <p>I have a custom editor in a WebView (CodeMirror), which uses an empty <code>&lt;textarea&gt;</code> internally. It seems that backspace is not sent by an Android system unless it believes there is some text in the <code>&lt;textarea&gt;</code>.</p>
  
  <p>I have overridden <code>WebView</code> <code>onCreateInputConnection</code> in an attempt to dumb down soft input:</p>
  
  <pre><code>@Override
  public InputConnection onCreateInputConnection(EditorInfo outAttrs) {
      Log.d("CustomWebView", "onCreateInputConnection(...)");
      BaseInputConnection connection = new BaseInputConnection(this, false);
      outAttrs.inputType = InputType.TYPE_NULL;
      outAttrs.imeOptions = EditorInfo.IME_ACTION_NONE;
      outAttrs.initialSelStart = -1;
      outAttrs.initialSelEnd = -1;
  
      return connection;
  }
  </code></pre>
  
  <p>However, this does not work, and even <code>onKeyUp</code> is not called for backspace.</p>
  
  <p>How do I force soft keyboard to always send backspace?</p>