In my ios application,I want to detect return key.So i used this javaScript.
function onKeyPress(e)
{
alert(e.keyCode);
if (e.keyCode == 13 ) {
window.location.href = "newline://buttonClicked";
}
}
When I use internal keyboard I can get correct key code,but if I use external keyboard it always gives 0
value.
How can I detect correct key code from external keyboard?