From fb53be8fe6348c0b7938d300776b8d9bd2fe0ce8 Mon Sep 17 00:00:00 2001 From: Aria Minaei Date: Sun, 14 Nov 2021 21:30:09 +0100 Subject: [PATCH] CurveEditor popover now opens with its text selected --- .../KeyframeEditor/CurveEditorPopover/CurveEditorPopover.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/theatre/studio/src/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/CurveEditorPopover.tsx b/theatre/studio/src/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/CurveEditorPopover.tsx index a32b84e..870ac7f 100644 --- a/theatre/studio/src/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/CurveEditorPopover.tsx +++ b/theatre/studio/src/panels/SequenceEditorPanel/DopeSheet/Right/BasicKeyframedTrack/KeyframeEditor/CurveEditorPopover/CurveEditorPopover.tsx @@ -109,6 +109,7 @@ const CurveEditorPopover: React.FC< const inputRef = useRef(null) useLayoutEffect(() => { inputRef.current!.focus() + inputRef.current!.setSelectionRange(0, 100) }, []) const {index, trackData} = props