Skip to content

Commit

Permalink
ui: add Shift+Enter and Ctrl+Shift+Enter commands to editor
Browse files Browse the repository at this point in the history
  • Loading branch information
x1unix committed Apr 15, 2022
1 parent c48fd6c commit 850fcc1
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions web/src/components/editor/CodeEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,6 @@ export default class CodeEditor extends React.Component<any, CodeEditorState> {
}
];

editorInstance.addCommand(
monaco.KeyMod.Shift | monaco.KeyCode.Enter,
(get) => {
const v = editorInstance.getAction('editor.action.insertLineAfter');
console.log({v, get: get.get('editor')});
v.run();
}
)
// Register custom actions
actions.forEach(action => editorInstance.addAction(action));
attachCustomCommands(editorInstance);
Expand Down

0 comments on commit 850fcc1

Please sign in to comment.