Page 1 of 1

Unable to delete the entered number in the input field

PostPosted: Thu Apr 16, 2015 4:14 am
by rjot
Hi, in my app i have some inputs with number, and when user click BLUE key when input has class activeStep, then app call deleteLastChar(). In Philips devices it not work, but in STA emulator works fine, anybody knows why? I put some code bellow:
Code: Select all
//html
<div id=\"amountOut\" class=\"cursorHand activeStep\">
<p id=\"amountOutText\">Amount:</p>
<input id=\"amountOutInput\" type=\"text\" size=\"15\" maxlength=\"11\" value=\"5000\" />
</div>

//js

case VK_BLUE:

if($('#calcForm .activeStep').find('input').length > 0){
deleteLastChar();
}
break;
....

function deleteLastChar() {
$('#amountOutInput').val($('#amountOutInput').val().slice(0,-1));
// etc not important
}

P.S. I don't have a real Philips device, only test in STA emulator.

Unable to delete the entered number in the input field

PostPosted: Sun Apr 19, 2015 7:05 pm
by Support_STA
Hi eR Jaro,

Did you make something else to change the default behavior of the textbox?
I think that will make the on-screen keyboard goes wrong.

Regards.