Skip to content

Commit

Permalink
allow ctrl + enter as compile
Browse files Browse the repository at this point in the history
  • Loading branch information
alixander committed Sep 4, 2024
1 parent 5e69fbd commit 98b30aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/js/modules/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ async function initMonaco() {
() => undefined
);
monacoEditor.addCommand(monaco.KeyMod.CtrlCmd | monaco.KeyCode.KeyS, compile);
monacoEditor.addCommand(monaco.KeyMod.CtrlCmd | monaco.KeyCode.Enter, compile);
provider.registry.setTheme(lightTheme);
monaco.editor.setTheme(lightTheme);

Expand Down

0 comments on commit 98b30aa

Please sign in to comment.