diff options
author | bobzel <zzzman@gmail.com> | 2021-09-17 21:33:24 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-09-17 21:33:24 -0400 |
commit | ace42c6705d9f523f6f7af8cc22d0e6a3b5eeace (patch) | |
tree | 7ff87d755baed928da79ffad9fcdc820b53ccd56 /src | |
parent | dfe45d9162857b35574f8f809bca132c0467189a (diff) |
stop propagation of keybaord events in EquationBox to allow cursor controls w/o moving the document
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/nodes/EquationBox.tsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/views/nodes/EquationBox.tsx b/src/client/views/nodes/EquationBox.tsx index dacafcdf4..11ef6562f 100644 --- a/src/client/views/nodes/EquationBox.tsx +++ b/src/client/views/nodes/EquationBox.tsx @@ -88,6 +88,7 @@ export class EquationBox extends ViewBoxBaseComponent<FieldViewProps, EquationDo style={{ pointerEvents: !this.props.isSelected() ? "none" : undefined, }} + onKeyDown={e => e.stopPropagation()} > <EquationEditor ref={this._ref} value={this.dataDoc.text || "x"} |