How to handle Keyboard events in VSIX?

女生的网名这么多〃 提交于 2021-02-08 07:27:40

问题


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

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