Windows 8 soft keyboard not hidden

青春壹個敷衍的年華 提交于 2019-12-06 11:28:39

I solved the problem by setting the focus on a fictive button (width=0, height=0) before displaying a popup. So when the popup is closed, the focus is placed on the button which it does not need the keyboard. Without this, the focus is given on the last focused "control" that can have a strange behaviour with the keyboard.

Hoping to have helped.

Fox

You cannot control when the touch keyboard is shown or hidden. This white paper describes in detail the logic behind when the keyboard is shown and/or hidden. From the last paragraph:

This means that applications cannot programmatically invoke the touch keyboard via manipulation of focus.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!