diff options
author | Stanley Yip <33562077+yipstanley@users.noreply.github.com> | 2019-07-30 19:41:09 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-30 19:41:09 -0400 |
commit | 13f45e3c819aaafcff175256ffb8723642c22dca (patch) | |
tree | 00e38b12a22dcc52253e2d7c3e35efee42ad80cf /src/client/util/ProsemirrorExampleTransfer.ts | |
parent | 80e6356692da7bffaad2efccf01500173c488de0 (diff) | |
parent | a2a73a1ad032979ea6eea06aa65354841e0ef0fa (diff) |
Merge pull request #233 from browngraphicslab/text_box_ab
Text box ab
Diffstat (limited to 'src/client/util/ProsemirrorExampleTransfer.ts')
-rw-r--r-- | src/client/util/ProsemirrorExampleTransfer.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/util/ProsemirrorExampleTransfer.ts b/src/client/util/ProsemirrorExampleTransfer.ts index fa9e2e5af..c38f84551 100644 --- a/src/client/util/ProsemirrorExampleTransfer.ts +++ b/src/client/util/ProsemirrorExampleTransfer.ts @@ -47,6 +47,10 @@ export default function buildKeymap<S extends Schema<any>>(schema: S, mapKeys?: bind("Mod-i", toggleMark(type)); bind("Mod-I", toggleMark(type)); } + if (type = schema.marks.underline) { + bind("Mod-u", toggleMark(type)); + bind("Mod-U", toggleMark(type)); + } if (type = schema.marks.code) { bind("Mod-`", toggleMark(type)); } |