aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/EditableView.tsx
diff options
context:
space:
mode:
authoreeng5 <eleanor_eng@brown.edu>2019-10-01 18:52:53 -0400
committereeng5 <eleanor_eng@brown.edu>2019-10-01 18:52:53 -0400
commit2b26a9e8b718fb595a0f40914741e4f7d7c19d14 (patch)
treed0d62cc8281445030ab6b5cf74b48235d0b64f20 /src/client/views/EditableView.tsx
parent16e511e35ecbe6166ced813d27884b367f6c6fbb (diff)
UI changes: 3 buttons, bar, menu w/ alias
Diffstat (limited to 'src/client/views/EditableView.tsx')
-rw-r--r--src/client/views/EditableView.tsx13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/client/views/EditableView.tsx b/src/client/views/EditableView.tsx
index 4a77db3d6..58f5d662d 100644
--- a/src/client/views/EditableView.tsx
+++ b/src/client/views/EditableView.tsx
@@ -73,14 +73,6 @@ export class EditableView extends React.Component<EditableProps> {
}
}
- collapseSection() {
- if (this.props.HeadingObject) {
- this._headingsHack++;
- this.props.HeadingObject.setCollapsed(!this.props.HeadingObject.collapsed);
- this.props.toggle && this.props.toggle();
- }
- }
-
@action
onKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => {
if (e.key === "Tab") {
@@ -110,11 +102,6 @@ export class EditableView extends React.Component<EditableProps> {
this._editing = true;
this.props.isEditingCallback && this.props.isEditingCallback(true);
}
- if (e.ctrlKey) {
- this._editing = false;
- this.props.isEditingCallback && this.props.isEditingCallback(false);
- this.collapseSection();
- }
e.stopPropagation();
}