A strange problem with PhoneGap 2.2, predictive text and input type = "text" on Android 4.0.3

I had a strange problem with predictive text in PhoneGap 2.2 and Android 4.0.3 (on Samsung Galaxy Tab 2 7.0 the problem does not occur on other devices / versions of Android). When smart text is turned on on the device, and I type text in any input field, the text is not added to the input field, and when I click on the prediction, strange text is added to the input field. For example, if I type β€œdemo”, no letters are added to the input field, if I then click on the β€œdemo” prediction the string β€œd” (always the first letter of the prediction, followed by a space) is added to the input field. Does anyone know how this causes this behavior? and how can i fix it?

+4
source share
1 answer

i fixed it using the softKeyboard plugin. https://github.com/phonostar/PhoneGap-SoftKeyboard/tree/7eae2991eef34d4451968876c8b8893e309456e5

$(document).on({ blur : function(){ cordova.plugins.SoftKeyboard.hide(); }, focus : function(){ cordova.plugins.SoftKeyboard.show(); } }, ':input[type="text"],[type="number"],[type="email"]'); 
0
source

All Articles