aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/ProsemirrorKeymap.ts
diff options
context:
space:
mode:
authorSam Wilkins <abdullah_ahmed@brown.edu>2019-04-15 18:53:25 -0400
committerSam Wilkins <abdullah_ahmed@brown.edu>2019-04-15 18:53:25 -0400
commit47ff32717a209e706b39265fbdc857f398094fe8 (patch)
tree99bf87c39144af68c385ffad1bf0f81a88fc95b8 /src/client/util/ProsemirrorKeymap.ts
parente981d9d228507fc573febc997eb691a5428126e8 (diff)
updated list making and (un)indenting key commands) in prosemirror mapping
Diffstat (limited to 'src/client/util/ProsemirrorKeymap.ts')
-rw-r--r--src/client/util/ProsemirrorKeymap.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/util/ProsemirrorKeymap.ts b/src/client/util/ProsemirrorKeymap.ts
index 7718b3c06..00d086b97 100644
--- a/src/client/util/ProsemirrorKeymap.ts
+++ b/src/client/util/ProsemirrorKeymap.ts
@@ -50,10 +50,10 @@ export default function buildKeymap<S extends Schema<any>>(schema: S, mapKeys?:
}
if (type = schema.nodes.bullet_list) {
- bind("Shift-Ctrl-8", wrapInList(type));
+ bind("Ctrl-b", wrapInList(type));
}
if (type = schema.nodes.ordered_list) {
- bind("Shift-Ctrl-9", wrapInList(type));
+ bind("Ctrl-n", wrapInList(type));
}
if (type = schema.nodes.blockquote) {
bind("Ctrl->", wrapIn(type));
@@ -74,8 +74,8 @@ export default function buildKeymap<S extends Schema<any>>(schema: S, mapKeys?:
}
if (type = schema.nodes.list_item) {
bind("Enter", splitListItem(type));
- bind("Mod-[", liftListItem(type));
- bind("Mod-]", sinkListItem(type));
+ bind("Shift-Tab", liftListItem(type));
+ bind("Tab", sinkListItem(type));
}
if (type = schema.nodes.paragraph) {
bind("Shift-Ctrl-0", setBlockType(type));