diff options
| author | tschicke-brown <tyler_schicke@brown.edu> | 2019-07-30 21:39:40 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-30 21:39:40 -0400 |
| commit | b75a6be07547ca4c7e559da585c1cb1807087581 (patch) | |
| tree | e27d3fa55d42e8d156ba5ee8140d0771b3a04734 /src/client/views/collections/CollectionSchemaHeaders.tsx | |
| parent | 13f45e3c819aaafcff175256ffb8723642c22dca (diff) | |
| parent | a28a3b79f81e82e4b3368c0e87d3a56c694cc3b4 (diff) | |
Merge pull request #240 from browngraphicslab/fawn_smallFixes
Fawn small fixes
Diffstat (limited to 'src/client/views/collections/CollectionSchemaHeaders.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionSchemaHeaders.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/views/collections/CollectionSchemaHeaders.tsx b/src/client/views/collections/CollectionSchemaHeaders.tsx index 4f0681f6c..dfd65770e 100644 --- a/src/client/views/collections/CollectionSchemaHeaders.tsx +++ b/src/client/views/collections/CollectionSchemaHeaders.tsx @@ -11,6 +11,7 @@ import { emptyFunction } from "../../../Utils"; import { contains } from "typescript-collections/dist/lib/arrays"; import { faFile } from "@fortawesome/free-regular-svg-icons"; import { SchemaHeaderField, RandomPastel, PastelSchemaPalette } from "../../../new_fields/SchemaHeaderField"; +import { undoBatch } from "../../util/UndoManager"; library.add(faPlus, faFont, faHashtag, faAlignJustify, faCheckSquare, faToggleOn, faFile, faSortAmountDown, faSortAmountUp, faTimes); @@ -286,6 +287,7 @@ class KeysDropdown extends React.Component<KeysDropdownProps> { this.props.setIsEditing(false); } + @undoBatch @action onKeyDown = (e: React.KeyboardEvent): void => { if (e.key === "Enter") { |
