bocan
bocan

Reputation: 77

Monaco-editor : disable command palette

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

Answers (1)

Aron B.
Aron B.

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

Related Questions