I
I
isxaker2014-06-26 16:32:27
JavaScript
isxaker, 2014-06-26 16:32:27

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

1 answer(s)
R
Roman Zhak, 2014-06-26
@romanzhak

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 question

Ask a Question

731 491 924 answers to any question