aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/MarqueeAnnotator.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2024-05-08 23:16:54 -0400
committerbobzel <zzzman@gmail.com>2024-05-08 23:16:54 -0400
commitd40efe81ab30485266b7b686dfb35c531e75a568 (patch)
treef12c9b151e1c6b35f4afa3962595386ce596e37c /src/client/views/MarqueeAnnotator.tsx
parentb858bd3cad81da41e63b9f8e807e41421ca4aa34 (diff)
fixed text selection on web pages. cleaned up gptSummarize to work on any text.
Diffstat (limited to 'src/client/views/MarqueeAnnotator.tsx')
-rw-r--r--src/client/views/MarqueeAnnotator.tsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/views/MarqueeAnnotator.tsx b/src/client/views/MarqueeAnnotator.tsx
index a917a7d57..c18ac6738 100644
--- a/src/client/views/MarqueeAnnotator.tsx
+++ b/src/client/views/MarqueeAnnotator.tsx
@@ -258,6 +258,7 @@ export class MarqueeAnnotator extends ObservableReactComponent<MarqueeAnnotatorP
};
@action
onEnd = (x: number, y: number) => {
+ AnchorMenu.Instance.setSelectedText('');
const marquees = this.props.marqueeContainer.getElementsByClassName('marqueeAnnotator-dragBox');
const marqueeStyle = (Array.from(marquees).lastElement() as HTMLDivElement)?.style;
if (!this.isEmpty && marqueeStyle) {