开发者

How to kill the softkeyboard from flash player

I needed a way to invoke softkeyboard in android platforms开发者_JS百科, and i got to know how to do it form here Flash APIs for Android Platform. Now i need to kill the keyboard, basically there is a button which i want to use to toggle the keyboard. Flash has provided a way to invoke the keyboard but not to kill it.(never understood how they work). One more issue is that when i click the down button on softkeyboard which is located on bottom left of the screen, the Softkeyboard_Deactivate event is not fired. It seems its fired only when the focus shifts from one object to another.

So what should be done ?


OK so it seems if you just set the "stage.focus = null" it will lower the keyboard. It came out of the blue to me to try this and worked like a charm.


Im not sure if this will work and this is a bit of a hack but on the hide button click you could set focus to an off screen textfield which has its needsSoftKeyboard property set to false.

I dont have an android phone so im unable to test that this works from here.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜