serdarciplak / BlazorMonaco

Blazor component for Microsoft's Monaco Editor which powers Visual Studio Code.
https://serdarciplak.github.io/BlazorMonaco/
MIT License
449 stars 100 forks source link

When pressing '{' on keydown code it is saying sqaure bracket code how to get curly bracket pressed on not? #89

Closed snehabihani closed 1 year ago

serdarciplak commented 1 year ago

Key codes correspond to keyboard keys, not characters. As you can see here, the BracketLeft key code is used for the '[{' key on a US keyboard.

If you need to listen to characters, you can use the OnDidChangeModelContent event of the editor instance.