作者:张鹏22_981 | 来源:互联网 | 2023-05-16 10:03
Usersofmyapplicationhaveasecondkeyboardwithspecialfunctionkeys.Unfortunately,thekeysa
Users of my application have a second keyboard with special function keys. Unfortunately, the keys are mapped to buttons such as F, G, F1 and so on. I would like to handle PreviewKeyDown and prevent any keys from these keyboards having an effect in normal controls such as TextBoxes.
我的应用程序的用户有一个带有特殊功能键的第二个键盘。不幸的是,键被映射到诸如F,G,F1等按钮。我想处理PreviewKeyDown并防止这些键盘中的任何键在普通控件(如TextBoxes)中起作用。
In WPF, is there any way of determining which keyboard raised the event?
在WPF中,有没有办法确定哪个键盘引发了事件?
2 个解决方案