find keyboard is visible using jquery

前端 未结 1 1577
挽巷
挽巷 2021-01-24 02:41

Hi I have developed android phonegap app which is responsive.So when keyboard is visible i need to hide the footer in portrait and landscape mode and keyboard is not visible i n

相关标签:
1条回答
  • 2021-01-24 03:00

    I think your best bet is to register for the show and hide keyboard events.

    document.addEventListener("showkeyboard", function() {
        $("#footer1").hide();
    }, false);
    
    document.addEventListener("hidekeyboard", function() {
        $("#footer1").show();
    }, false);
    
    0 讨论(0)
提交回复
热议问题