This is how it was implemented, unfortunately, in Android <4.1
When webkit displays the input fields, it converts them to android.webkit.WebTextView objects, which determine how the on-screen keyboard will look and below 4.1. I don't think there is a way to change this or override the ImeOptions set by the WebTextView class
That’s why, if you have a clean numeric field, you will see the following button, but for other fields you will see the Go button. So the pure figure I would expect to see, surprised that you are not
<input type="text" name="..." .... /> ----> on the keyboard you see "Go" <input type="number" name="..." .... /> ----> on the keyboard you see "Next"
This is from webviewclass.java file from webkit
case WebTextView.NORMAL_TEXT_FIELD: break; case WebTextView.TEXT_AREA: inputType |= InputType.TYPE_TEXT_FLAG_MULTI_LINE | InputType.TYPE_TEXT_FLAG_CAP_SENTENCES | InputType.TYPE_TEXT_FLAG_AUTO_CORRECT; action = EditorInfo.IME_ACTION_NONE; break; case WebTextView.PASSWORD: inputType |= EditorInfo.TYPE_TEXT_VARIATION_WEB_PASSWORD; break; case WebTextView.SEARCH: action = EditorInfo.IME_ACTION_SEARCH; break; case WebTextView.EMAIL:
So, it is clear that the number and telephone fields have the following. Now I say <4.1, because 4.1 you could probably use and extend WebViewInputConnection from WebViewClassic.java to webkit and hack it to work in text fields, but yes, there are no changes in Android documents, they stick to this design , and I didn’t even try this, so just a speculative hope: D
source share