lk-code / winui.monaco-editor

The Monaco Editor for WinUI 3
MIT License
9 stars 4 forks source link

right-menu doesnt work #39

Open 632575987 opened 7 months ago

632575987 commented 7 months ago

Tried using the right-click menu, but none worked

lk-code commented 7 months ago

hi,

which context menu do you mean?

the monaco context menu works in the test app:

Bildschirmfoto 2024-01-09 um 19 08 47
632575987 commented 7 months ago

demo

632575987 commented 7 months ago

Is there any extra option that needs to be set in the code? I tried creating a new project then referencing the library in nuget, and then adding that control in xaml.

lk-code commented 7 months ago

I have not made any modifications to this part, it is the original code from the Monaco project. There is no error message in the F12 DevTools. I think we will have to create a ticket for this.

lk-code commented 7 months ago

I have opened and examined the underlying HTML file (\source\Monaco\MonacoEditorSource\index.html). Here the context menu also has further entries. I think that the WebView2 suppresses some things. I will investigate this when I have time :)

lk-code commented 7 months ago

linked here #40

632575987 commented 7 months ago

Looking forward to the update.