简体   繁体   English

捕捉按键事件

[英]Catch a key-press event

I am wondering, if you could listen for any key-presses or key-combination within a Visual Studio Extension?我想知道,您是否可以在 Visual Studio 扩展中收听任何按键或组合键? Additionally could it be differentiated between key-press events within a document and within the focus on the Visual Studio Window itself?此外,是否可以区分文档中的按键事件和 Visual Studio Window 本身的焦点?

You can refer to this solution.可以参考这个解决方案。 This may help you.这可能对你有帮助。 Your question is quite confusing but here you can get more general information about Key event handling.您的问题很混乱,但在这里您可以获得有关 Key 事件处理的更多一般信息。

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

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