aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2020-02-19 10:28:03 -0500
committerbob <bcz@cs.brown.edu>2020-02-19 10:28:03 -0500
commit19500fb6e0f3450a03d16ef653ecfec03bfe8547 (patch)
tree53c8fad3d0b21351cc83a4447650a412b61ebede /src
parent46ee7dc4934de6bf2f7c6e49558ff8cf6485d161 (diff)
fixed selecting text document when open as golden layout pane.
Diffstat (limited to 'src')
-rw-r--r--src/client/views/nodes/FormattedTextBox.tsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/views/nodes/FormattedTextBox.tsx b/src/client/views/nodes/FormattedTextBox.tsx
index fd288f720..ec16b2759 100644
--- a/src/client/views/nodes/FormattedTextBox.tsx
+++ b/src/client/views/nodes/FormattedTextBox.tsx
@@ -929,6 +929,7 @@ export class FormattedTextBox extends DocAnnotatableComponent<(FieldViewProps &
// }
if (Math.abs(e.clientX - this._downX) < 4 && Math.abs(e.clientX - this._downX) < 4) {
+ this.props.select(e.ctrlKey);
this.hitBulletTargets(e.clientX, e.clientY, e.shiftKey, false);
}
if (this._recording) setTimeout(() => { this.stopDictation(true); setTimeout(() => this.recordDictation(), 500); }, 500);