Android: Backspace in WebView/BaseInputConnection
问题 I have a problem with soft keyboard backspace in Android (4.2). I have a custom editor in a WebView (CodeMirror), which uses an empty <textarea> internally. It seems that backspace is not sent by an Android system unless it believes there is some text in the <textarea> . I have overridden WebView onCreateInputConnection in an attempt to dumb down soft input: @Override public InputConnection onCreateInputConnection(EditorInfo outAttrs) { Log.d("CustomWebView", "onCreateInputConnection(...)");