mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-14 10:35:11 +00:00
yarn: add monaco-editor
react-monaco-editor changed to include monaco-editor as a peer dependency. Also fix breakage for updated monaco-editor version.
This commit is contained in:
committed by
David Lechner
parent
df0e9805d9
commit
39c66eb98c
@@ -134,7 +134,7 @@ class Editor extends React.Component<EditorProps> implements IContextMenuTarget
|
||||
label: i18n.translate(EditorStringId.ToggleDocs),
|
||||
run: () => onToggleDocs(),
|
||||
keybindings: [
|
||||
monaco.KeyMod.CtrlCmd | monaco.KeyCode.KEY_D,
|
||||
monaco.KeyMod.CtrlCmd | monaco.KeyCode.KeyD,
|
||||
],
|
||||
});
|
||||
e.addAction({
|
||||
@@ -153,7 +153,7 @@ class Editor extends React.Component<EditorProps> implements IContextMenuTarget
|
||||
console.debug('Ctrl-S ignored');
|
||||
},
|
||||
keybindings: [
|
||||
monaco.KeyMod.CtrlCmd | monaco.KeyCode.KEY_S,
|
||||
monaco.KeyMod.CtrlCmd | monaco.KeyCode.KeyS,
|
||||
],
|
||||
});
|
||||
e.focus();
|
||||
|
||||
Reference in New Issue
Block a user