How to detect keyboard close event on android device using javascript

I am developing an Android phone service application. Currently, I am facing one problem with inputbox problem with specific HTC Android device, and I have a solution for this. But I need to know when the keyboard close event occurred .

so my question is how to detect keyboard close event using phone bookmark or any plugins to detect keyboard event for android device.

Please, help. Thanks in advance.

+4
source share
3 answers

I do not use Phonegap, but I did some rudimentary Google searches, such as โ€œphonegap android hide keyboard eventโ€, and came across these two relevant messages a few months ago.

The first is here on SO: Android SoftKeyboardDetect: ignore this event, what does it mean? . It seems that if you go down to native Java (...), Android will try to make it available.

This other one, Re: [PhoneGap] Re: SoftKeyboardDetect (328): Ignore on a phone-centric site seems to suggest that the widget's implementation on the phone or the SoftKeyboardDetect code.

I have Android code written in Java where it works fine.

+2
source

I ran into a similar problem for developing iPhone-based telephony applications. I fixed the problem as follows.

 $("input[type=text], textarea"). bind("blur", function(e) { window.scrollTo(0.0); loaded(); }); 

You can detect a close event with the blur action.

+1
source

I use:

  inputElement.bind("closeKeyboard", function() { //do something }); 
-2
source

All Articles