Issues after I add a command filter to textview
问题 I want to intercept key events in vs. I searched many articles for help, and this article inspired me. What I have done is: create a new class and implement "IVsTextManagerEvents" interface to register every textview. public void OnRegisterView(IVsTextView pView) { CommandFilter filter = new CommandFilter(); IOleCommandTarget nextCommandTarget; pView.AddCommandFilter(filter, out nextCommandTarget); filter.NextCommandTarget = nextCommandTarget; } add new class "CommandFilter" which implement