diff options
author | bob <bcz@cs.brown.edu> | 2020-02-28 12:17:03 -0500 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2020-02-28 12:17:03 -0500 |
commit | 5c139f0001cd10e5699a716c1e64d2c2c0b2d800 (patch) | |
tree | 1111c40fe0a542c2a7f77b71a2f8c747093a984e /src/client/util/RichTextSchema.tsx | |
parent | c7aa396670c3ccdd0ef158d483285910f6a7a8fe (diff) |
allowing different text templates to be the default. fixing transparency. removing audio by default from notes.
Diffstat (limited to 'src/client/util/RichTextSchema.tsx')
-rw-r--r-- | src/client/util/RichTextSchema.tsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/util/RichTextSchema.tsx b/src/client/util/RichTextSchema.tsx index a56aac9b1..4a80a1af8 100644 --- a/src/client/util/RichTextSchema.tsx +++ b/src/client/util/RichTextSchema.tsx @@ -910,11 +910,11 @@ export class DashFieldView { } e.preventDefault(); } - if (e.key === "Enter" && e.ctrlKey) { - Doc.addEnumerationToTextField(self._textBoxDoc, node.attrs.fieldKey, [Docs.Create.TextDocument(self._fieldSpan.innerText, { title: self._fieldSpan.innerText })]); - e.preventDefault(); - } else if (e.key === "Enter") { + if (e.key === "Enter") { e.preventDefault(); + if (e.ctrlKey) { + Doc.addEnumerationToTextField(self._textBoxDoc, node.attrs.fieldKey, [Docs.Create.TextDocument(self._fieldSpan.innerText, { title: self._fieldSpan.innerText })]); + } let newText = self._fieldSpan.innerText.startsWith(":=") ? ":=-computed-" : self._fieldSpan.innerText; // look for a document whose id === the fieldKey being displayed. If there's a match, then that document // holds the different enumerated values for the field in the titles of its collected documents. |