Skip to content
Discussion options

You must be logged in to vote

The solution is to disable key processing inside main window, when second window is opened. Same for adornment layer control, if one prefer adornment approach.

One need to setup the assembly as MefComponent, and just add the code:

    [Export(typeof(IVsTextViewCreationListener))]
    [ContentType("text")]
    [TextViewRole(PredefinedTextViewRoles.Editable)]
    internal sealed class AdornmentInputFilterProvider : IVsTextViewCreationListener
    {
        [Import] internal IVsEditorAdaptersFactoryService Adapters = null!;

        public void VsTextViewCreated(IVsTextView textViewAdapter)
        {
            var wpfTextView = Adapters.GetWpfTextView(textViewAdapter);
            var filt…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@StevenRasmussen
Comment options

@lsoft
Comment options

@StevenRasmussen
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by lsoft
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants