简体   繁体   English

KeyDow上的Windows Store App OEM密钥

[英]Windows Store App OEM keys on KeyDow

I'm writing a Windows Store app, and for the functions to work properly I need to handle the OEM keys for +,-,*,/,?,! 我正在编写Windows Store应用程序,为了使这些功能正常工作,我需要处理+,-,*,/ 、?的OEM密钥! Etc. in a KeyDown event handler. 等等在KeyDown事件处理程序中。 But the VirtualKey class doesn't have these keys included and I couldn't find any reference that could help. 但是VirtualKey类没有包含这些键,而且我找不到任何有帮助的引用。 How can I identify these keys? 如何识别这些钥匙?

Do not try to translate virtual keystrokes yourself. 不要尝试虚拟键盘输入自己的翻译。 This will not come to a good end on machines with a non-standard keyboard layout. 在采用非标准键盘布局的机器上,这不会有一个好的结果。 Like the other two billion in the rest of the world. 就像世界其他地区的其他20亿一样。 That was something that you could possibly ignore in desktop apps with a limited distribution but no longer in a Store app that's sold across the planet. 在分配有限的台式机应用程序中,您可能会忽略这一点,但在全球范围内销售的商店应用程序中,您可能会忽略这一点。 Your app will probably not pass the Store validation when you try anyway. 无论如何,您的应用可能不会通过商店验证。

Not sure why you are doing this but the CoreWindow.CharacterReceived event tends to be hard to find. 不知道为什么要这样做,但是CoreWindow.CharacterReceived事件往往很难找到。 Which is what you'll need to get a reliable translation. 这是获得可靠翻译所需要的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM