monaco-react icon indicating copy to clipboard operation
monaco-react copied to clipboard

Question

Open LydiaF opened this issue 2 years ago • 1 comments

Hi Suren,

Thanks again for monaco-react :)

I have a little question, feel free to ignore. I am trying to make this work..

https://stackoverflow.com/questions/51942332/escape-key-event-propagation

This is how I went about it:

function handleEditorDidMount(editor, monaco) {
    editor.addCommand(monaco.KeyCode.Escape, function () {
      console.log(123)
    })

But nothing happens on hitting Escape. Should this work or is there another way?

Thanks a million,

Lydia

LydiaF avatar Mar 29 '22 12:03 LydiaF

hey 👋 @LydiaF

could you please check this?

suren-atoyan avatar Mar 29 '22 18:03 suren-atoyan