是否可以在 Win 8 中隐藏 SIP(​​软键盘)? [英] Is it possible to hide the SIP (soft keyboard) in Win 8?

查看:17
本文介绍了是否可以在 Win 8 中隐藏 SIP(​​软键盘)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当用户编辑记录时,XAML 弹出窗口会显示一个小表单.

When the user edits a record, a XAML Popup shows a small form.

当用户将焦点放在 TextBox 上时会出现软键盘.

The software keyboard appears when the user gives focus to a TextBox.

这很好.

OnKeyDown(如果 Enter)我提交用户的更改.

OnKeyDown (if Enter) I commit the user's changes.

提交更改后,我隐藏 XAML 弹出窗口.

After the changes are committed, I hide the XAML Popup.

即使表单不可见,SIP 仍然可见.

The SIP remains visible even though the form is invisible.

处理这种情况的正确方法是什么?

What is the correct way to handle this scenario?

PS:这(在 windows8 上以编程方式显示/隐藏键盘)是不是这个问题的解决方案.那是因为这个问题是想阻止它显示出来.我需要它隐藏起来.

PS: this ( Show/Hide Keyboard programmatically on windows8 ) is not a solution to this problem. That's because the question is wanting to prevent it from showing. I need it to hide.

推荐答案

在隐藏弹出窗口之前禁用 texbox,将焦点移到不会使用键盘的地方(例如透明的 0x0 边框),也许?

Disable the texbox before you hide the popup, move the focus to something that won't use the keyboard (like transparent 0x0 border), perhaps?

这篇关于是否可以在 Win 8 中隐藏 SIP(​​软键盘)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆