aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/ProsemirrorExampleTransfer.ts
diff options
context:
space:
mode:
authorStanley Yip <33562077+yipstanley@users.noreply.github.com>2019-07-30 19:41:09 -0400
committerGitHub <noreply@github.com>2019-07-30 19:41:09 -0400
commit13f45e3c819aaafcff175256ffb8723642c22dca (patch)
tree00e38b12a22dcc52253e2d7c3e35efee42ad80cf /src/client/util/ProsemirrorExampleTransfer.ts
parent80e6356692da7bffaad2efccf01500173c488de0 (diff)
parenta2a73a1ad032979ea6eea06aa65354841e0ef0fa (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.ts4
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));
}