Click here to Skip to main content
15,887,485 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi, i want to catch the keypad show and hide event in android phonegap. I have tried by adding event listener to "showkeyboard" and "hidekeyboard" events but the events are not fired. can anyone give another solution for this problem.??

C#
document.addEventListener("deviceready", onDeviceReady, false);

function onDeviceReady()
{
    document.addEventListener("showkeyboard", onShow, false);
    document.addEventListener("hidekeyboard", onHide, false);
}

function onShow()
{
    alert("In");
}

function onHide()
{
    alert("Out");
}
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900