Thursday, January 23, 2014

phonegap android input box loses focus, how to make the keyboard does not automatically turn off?


            
After the discovery made by phonegap android application, an input box loses focus, the pop-up virtual keyboard will automatically shut down, but I want an effect, as the same micro-channel chat page, click on the "send" button, the virtual keyboard does not Close focus still in the input box.

Searching for a very long time, have not found a solution, you may have a good plan? Thank you, Thank you!
Reply:
Achieve their own keyboard. After you click Send, there is still so edittext focus on OK, the virtual keyboard is not closed because the focus is not lost
Reply:
First: to achieve their own keyboard, the difficulty for me now, too difficult.
Second: do not realize their own micro-channel keyboard, the keyboard is calling system, so it should be done.


Finally, I found a way:

Send button to bind touchstart event, and then stop the event delivery, the keyboard will not shut up.

(Click event does not work, click on the keyboard closed after the incident was triggered).
Reply:
reference to the second floor bingfenghzy reply:
First: to achieve their own keyboard, the difficulty for me now, too difficult.
Second: do not realize their own micro-channel keyboard, the keyboard is calling system, so it should be done.


Finally, I found a way:

Send button to bind touchstart event, and then stop the event delivery, the keyboard will not shut up.

(Click event does not work, click on the keyboard closed after the incident was triggered).

The landlord, specifically how to use it? Tell me about it?

No comments:

Post a Comment