问题
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