aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/EditableView.tsx
diff options
context:
space:
mode:
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();
}