Answer the question
In order to leave comments, you need to log in
How to detect if the keyboard is visible using javascript on android?
My site hides the address bar. However, if you scroll all the way up, the address bar will naturally appear. Then, if you click on the address bar, a virtual keyboard appears. Do I need to somehow detect this event? Does anyone have any ideas how this can be done?
Answer the question
In order to leave comments, you need to log in
Create a custom event:
$( "#foo" ).on( "keypad", function( e, param1 ) {
alert( param1 );
});
$( "#foo").trigger( "keypad", [ "shown" ] );
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question