aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/ProsemirrorKeymap.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/util/ProsemirrorKeymap.ts')
-rw-r--r--src/client/util/ProsemirrorKeymap.ts17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/client/util/ProsemirrorKeymap.ts b/src/client/util/ProsemirrorKeymap.ts
index 89d01486e..cf656dc17 100644
--- a/src/client/util/ProsemirrorKeymap.ts
+++ b/src/client/util/ProsemirrorKeymap.ts
@@ -24,22 +24,6 @@ export default function buildKeymap<S extends Schema<any>>(schema: S, mapKeys?:
keys[key] = cmd;
}
- function insertStar(state: EditorState<S>, dispatch: ((tr: Transaction<S>) => void)) {
- console.log("creating star...");
- let type = schema.nodes.star as NodeType<S>;
- let { $from } = state.selection;
- if (!$from.parent.canReplaceWith($from.index(), $from.index(), type)) {
- return false;
- }
- if (dispatch) {
- dispatch(state.tr.replaceSelectionWith(type.create()));
- }
- return true;
- }
-
- console.log("star? hullo");
- bind("Mod-space", insertStar);
-
bind("Mod-z", undo);
bind("Shift-Mod-z", redo);
bind("Backspace", undoInputRule);
@@ -95,7 +79,6 @@ export default function buildKeymap<S extends Schema<any>>(schema: S, mapKeys?:
}
if (type = schema.nodes.paragraph) {
bind("Shift-Ctrl-0", setBlockType(type));
- bind("Mod-space", insertStar);
}
if (type = schema.nodes.code_block) {
bind("Shift-Ctrl-\\", setBlockType(type));