Reputation: 77
I'm creating an electron app using monaco-editor but I want to disable the command palette when I press on F1. I tried e.preventDefault or e.stopPropagation but it didn't work.
Thanks
Upvotes: 1
Views: 1948
Reputation: 281
This issue from Monaco's repo shows you how you can overwrite the keybinding to do nothing. That stops the command palette from getting opened.
Upvotes: 2