monaco-react
monaco-react copied to clipboard
Question
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