Search code examples
c#.netkeyeventvsixonkeypress

How to handle Keyboard events in VSIX?


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.


Solution

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