用户可以使用什么键离开 WPF 文本框?
我正在尝试 确定用户是否离开使用键盘或鼠标的 WPF 文本框。
如果我决定监视文本框是否按下某些键,我应该监视哪些键?换句话说(因此是问题标题):
问题:用户可以使用哪些键离开 WPF 文本框?
是只有 Tab ,还是还有其他键需要考虑?
I'm trying to determine whether or not a user left the WPF TextBox using the keyboard or the mouse.
If I decide to monitor the TextBox for certain keys being pressed, what are the keys for which I should watch? Put another way (hence the question title):
Question: With what keys can a user possibly leave a WPF TextBox?
Is it only Tab , or are there other keys to consider?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不要忘记
Alt 菜单选项组合键
Alt-tab
Don't forget about
Alt menu option key combinations
Alt-tab
默认选项卡。然而,在 Windows 窗体(包括 WPF)中,您可以完全控制所有内容,因此可能导致控件失去焦点的击键/击键组合实际上是无限的。可能很容易看出任何特定的事情是否会导致特定的控件失去焦点,但在一般情况下涵盖所有可能性是不切实际的。
另外,您是否考虑过如何处理让用户导航屏幕的语音识别软件?
tab by default. However, In windows forms (including WPF) you have full control over everything so the keystrokes/keystroke combinations that could cause a control to lose focus is virtually limitless. It would probably be fairly easy to see if anything specific could cause a specific control to lose focus, but covering all possibilities is impractical in the general case.
Also, have you considered how to handle voice recognition software that lets a user navigate a screen?