diff options
author | laurawilsonri <laura_wilson@brown.edu> | 2019-04-15 20:07:42 -0400 |
---|---|---|
committer | laurawilsonri <laura_wilson@brown.edu> | 2019-04-15 20:07:42 -0400 |
commit | 8b1026d357dd40fc4a00010739d99ffc9db08641 (patch) | |
tree | e8ccd9f5920e32ac922533c73f87958569f276ec /src/client/util/ProsemirrorKeymap.ts | |
parent | c93d46a0d0692569d3a3a2a30c909d9ecbc40830 (diff) | |
parent | 1439ae372fb6a3cc136dffc0a9e9da3d839dfcff (diff) |
Merge branch 'richTextEditor' of https://github.com/browngraphicslab/Dash-Web into richTextEditor
Diffstat (limited to 'src/client/util/ProsemirrorKeymap.ts')
-rw-r--r-- | src/client/util/ProsemirrorKeymap.ts | 8 |
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)); |