How to handle Keyboard events in VSIX?

左心房为你撑大大i 提交于 2021-02-08 07:26:02

问题


I am working on VSIX project where I need to detect Enter key OnKeyUp event. How can I implement this in a Text Adornment project? I Need to detect the event when someone press key for changing the line in the editor.


回答1:


I got the solution in this thread of mine. We can use KeyProcessor class for keyboard event handling. We can refer from this sample.



来源:https://stackoverflow.com/questions/60261450/how-to-handle-keyboard-events-in-vsix

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!