diff options
| author | Hannah Chow <hannah_chow@brown.edu> | 2019-03-11 17:06:14 -0400 |
|---|---|---|
| committer | Hannah Chow <hannah_chow@brown.edu> | 2019-03-11 17:06:14 -0400 |
| commit | fe4f37c9986e0a6500d63b46e2238b0e0efb102b (patch) | |
| tree | d568f9264525835631a23b1643d3fb4e7899adc6 /src/client/views/nodes | |
| parent | 310255792c0b84c0c8cbb063b5e82fc69ca0dba6 (diff) | |
| parent | 99677c577a04aa289543ff5e97bd44e01b8fb4ab (diff) | |
Merge branch 'ui_improvements' of https://github.com/browngraphicslab/Dash-Web into ui_improvements
Diffstat (limited to 'src/client/views/nodes')
| -rw-r--r-- | src/client/views/nodes/FormattedTextBox.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/views/nodes/FormattedTextBox.tsx b/src/client/views/nodes/FormattedTextBox.tsx index a375cfc48..f5d5597a7 100644 --- a/src/client/views/nodes/FormattedTextBox.tsx +++ b/src/client/views/nodes/FormattedTextBox.tsx @@ -151,8 +151,12 @@ export class FormattedTextBox extends React.Component<FieldViewProps> { }) } + onKeyPress(e: React.KeyboardEvent) { + e.stopPropagation(); + } render() { return (<div className="formattedTextBox-cont" + onKeyPress={this.onKeyPress} onPointerDown={this.onPointerDown} onContextMenu={this.specificContextMenu} onWheel={this.onPointerWheel} |
