I have a problem with soft keyboard transition in Android (4.2).
I have my own editor in WebView (CodeMirror) that uses an empty <textarea> inside. It seems that the backspace is not sent by the Android system unless it considers there is text in the <textarea> .
I disabled WebView onCreateInputConnection in an attempt to drown out soft input:
@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; }
However, this does not work, and even onKeyUp not called for backspace.
How to make soft keyboard always send backspace?
android android-input-method android-4.2-jelly-bean
Andrey Shchekin Jan 28 '13 at 10:48 2013-01-28 10:48
source share