Interactions with AvalonEdit window in an AvalonDock










0














In my application we use AvalonDock for a docking manager, and have a variety of different windows. One of those contains an AvalonEdit editor. We recently noticed one specific interaction issue which I figured out to be caused by the AvalonDock.



When trying to block select code, you can use a bunch of different methods: Alt + click and drag, Alt + Shift + click and drag, Alt + Shift + arrow keys, and so on. One specific method, Alt + click and drag doesn't work. Specifically it does select, but typing doesn't work until you press either escape or space once. With Alt + Shift + click and drag it works fine.



I tested the AvalonEdit sample project as well as making my own simple example and it worked fine. When I put a test AvalonEdit window in a Window control instead of within a UserControl that's docked in my docking manager, it works fine. So something is going on with the interaction between having the AvalonEdit window within a AvalonDock vs. having it within some other window. Has anyone worked with these two controls together before? I know they're both used in SharpDevelop so I'd expect that they should work well together.



I found another issue which also has an alt-related issue with AvalonDock but it doesn't seem to be exactly what I'm seeing: AvalonDock Now Loses Alt Key Adornments. Also they claim that issue has been fixed, and I can't even test the solution in the answer as I don't have/use Blend. Looking at that bug makes me think it's more an issue with AvalonDock though and not AvalonEdit










share|improve this question




























    0














    In my application we use AvalonDock for a docking manager, and have a variety of different windows. One of those contains an AvalonEdit editor. We recently noticed one specific interaction issue which I figured out to be caused by the AvalonDock.



    When trying to block select code, you can use a bunch of different methods: Alt + click and drag, Alt + Shift + click and drag, Alt + Shift + arrow keys, and so on. One specific method, Alt + click and drag doesn't work. Specifically it does select, but typing doesn't work until you press either escape or space once. With Alt + Shift + click and drag it works fine.



    I tested the AvalonEdit sample project as well as making my own simple example and it worked fine. When I put a test AvalonEdit window in a Window control instead of within a UserControl that's docked in my docking manager, it works fine. So something is going on with the interaction between having the AvalonEdit window within a AvalonDock vs. having it within some other window. Has anyone worked with these two controls together before? I know they're both used in SharpDevelop so I'd expect that they should work well together.



    I found another issue which also has an alt-related issue with AvalonDock but it doesn't seem to be exactly what I'm seeing: AvalonDock Now Loses Alt Key Adornments. Also they claim that issue has been fixed, and I can't even test the solution in the answer as I don't have/use Blend. Looking at that bug makes me think it's more an issue with AvalonDock though and not AvalonEdit










    share|improve this question


























      0












      0








      0







      In my application we use AvalonDock for a docking manager, and have a variety of different windows. One of those contains an AvalonEdit editor. We recently noticed one specific interaction issue which I figured out to be caused by the AvalonDock.



      When trying to block select code, you can use a bunch of different methods: Alt + click and drag, Alt + Shift + click and drag, Alt + Shift + arrow keys, and so on. One specific method, Alt + click and drag doesn't work. Specifically it does select, but typing doesn't work until you press either escape or space once. With Alt + Shift + click and drag it works fine.



      I tested the AvalonEdit sample project as well as making my own simple example and it worked fine. When I put a test AvalonEdit window in a Window control instead of within a UserControl that's docked in my docking manager, it works fine. So something is going on with the interaction between having the AvalonEdit window within a AvalonDock vs. having it within some other window. Has anyone worked with these two controls together before? I know they're both used in SharpDevelop so I'd expect that they should work well together.



      I found another issue which also has an alt-related issue with AvalonDock but it doesn't seem to be exactly what I'm seeing: AvalonDock Now Loses Alt Key Adornments. Also they claim that issue has been fixed, and I can't even test the solution in the answer as I don't have/use Blend. Looking at that bug makes me think it's more an issue with AvalonDock though and not AvalonEdit










      share|improve this question















      In my application we use AvalonDock for a docking manager, and have a variety of different windows. One of those contains an AvalonEdit editor. We recently noticed one specific interaction issue which I figured out to be caused by the AvalonDock.



      When trying to block select code, you can use a bunch of different methods: Alt + click and drag, Alt + Shift + click and drag, Alt + Shift + arrow keys, and so on. One specific method, Alt + click and drag doesn't work. Specifically it does select, but typing doesn't work until you press either escape or space once. With Alt + Shift + click and drag it works fine.



      I tested the AvalonEdit sample project as well as making my own simple example and it worked fine. When I put a test AvalonEdit window in a Window control instead of within a UserControl that's docked in my docking manager, it works fine. So something is going on with the interaction between having the AvalonEdit window within a AvalonDock vs. having it within some other window. Has anyone worked with these two controls together before? I know they're both used in SharpDevelop so I'd expect that they should work well together.



      I found another issue which also has an alt-related issue with AvalonDock but it doesn't seem to be exactly what I'm seeing: AvalonDock Now Loses Alt Key Adornments. Also they claim that issue has been fixed, and I can't even test the solution in the answer as I don't have/use Blend. Looking at that bug makes me think it's more an issue with AvalonDock though and not AvalonEdit







      avalondock avalonedit






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 13 '18 at 14:59

























      asked Nov 12 '18 at 19:28









      zaknotzach

      5291412




      5291412






















          1 Answer
          1






          active

          oldest

          votes


















          0














          In the end it turned out that AvalonDock wasn't the culprit directly. The real issue was a WPF Ribbon control which was stealing the focus when you pressed Alt. Killing hotkeys on the Ribbon fixed the editor interactions.






          share|improve this answer




















            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53268842%2finteractions-with-avalonedit-window-in-an-avalondock%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            In the end it turned out that AvalonDock wasn't the culprit directly. The real issue was a WPF Ribbon control which was stealing the focus when you pressed Alt. Killing hotkeys on the Ribbon fixed the editor interactions.






            share|improve this answer

























              0














              In the end it turned out that AvalonDock wasn't the culprit directly. The real issue was a WPF Ribbon control which was stealing the focus when you pressed Alt. Killing hotkeys on the Ribbon fixed the editor interactions.






              share|improve this answer























                0












                0








                0






                In the end it turned out that AvalonDock wasn't the culprit directly. The real issue was a WPF Ribbon control which was stealing the focus when you pressed Alt. Killing hotkeys on the Ribbon fixed the editor interactions.






                share|improve this answer












                In the end it turned out that AvalonDock wasn't the culprit directly. The real issue was a WPF Ribbon control which was stealing the focus when you pressed Alt. Killing hotkeys on the Ribbon fixed the editor interactions.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 13 '18 at 17:17









                zaknotzach

                5291412




                5291412



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53268842%2finteractions-with-avalonedit-window-in-an-avalondock%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Top Tejano songwriter Luis Silva dead of heart attack at 64

                    政党

                    天津地下鉄3号線