lk-code / winui.monaco-editor

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

WinUI.Monaco-Editor KeyPress Notification back to WinUI UserControl #88

Open datovy-edam opened 6 days ago

datovy-edam commented 6 days ago

Greetings! First this work is very useful. I incorporated it on one of my Uno projects and works fine.

I am trying to understand how to get notified when (for example) Ctrl-S is pressed and get a notification in the WinUI3 UserControl so I can react accordingly. I have work on this for a while but have not found an answer yet.

Can you provide some sample code to do this?

lk-code commented 3 days ago

hi thanks for your comment. i think you have to observe it outside the monaco control. the monaco editor has some shortcuts (https://en.docs.monaca.io/products_guide/monaca_ide/editor) but no ctrl+s. :)

a question: how did you implement it on your uno project? i tried it on a uno app but it doesnt work for me :(