diff options
| author | Bob Zeleznik <zzzman@gmail.com> | 2020-03-09 15:24:02 -0400 |
|---|---|---|
| committer | Bob Zeleznik <zzzman@gmail.com> | 2020-03-09 15:24:02 -0400 |
| commit | 693d2121a9f0df48a0ebaecc40802e132b45f3fa (patch) | |
| tree | 77035d1c3d850e020a9ce66eb2fd98d2047d45fc /src/client/views/collections/CollectionSchemaCells.tsx | |
| parent | 0a924d6d8a76aa2cc50dad9a2d4296ec6d4624e5 (diff) | |
| parent | cabb2cf9065d85112f1bd89e31b41dafdbc4ba54 (diff) | |
Merge branch 'master' into audio_refactor
Diffstat (limited to 'src/client/views/collections/CollectionSchemaCells.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionSchemaCells.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionSchemaCells.tsx b/src/client/views/collections/CollectionSchemaCells.tsx index df7abad61..79b5d7bb7 100644 --- a/src/client/views/collections/CollectionSchemaCells.tsx +++ b/src/client/views/collections/CollectionSchemaCells.tsx @@ -77,7 +77,8 @@ export class CollectionSchemaCell extends React.Component<CellProps> { @action isEditingCallback = (isEditing: boolean): void => { - document.addEventListener("keydown", this.onKeyDown); + document.removeEventListener("keydown", this.onKeyDown); + isEditing && document.addEventListener("keydown", this.onKeyDown); this._isEditing = isEditing; this.props.setIsEditing(isEditing); this.props.changeFocusedCellByIndex(this.props.row, this.props.col); |
