From 8c528cc93a9500f8f8a457027af340f9ae056f57 Mon Sep 17 00:00:00 2001 From: awarzu Date: Sat, 11 Oct 2025 21:21:57 +0200 Subject: [PATCH] Double-click selects all text --- newIDE/app/src/UI/SimpleTextField.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/newIDE/app/src/UI/SimpleTextField.js b/newIDE/app/src/UI/SimpleTextField.js index d0bb5e7c6ecf..5b159d46d316 100644 --- a/newIDE/app/src/UI/SimpleTextField.js +++ b/newIDE/app/src/UI/SimpleTextField.js @@ -114,7 +114,12 @@ export const SimpleTextField = React.memo< defaultValue={props.value} placeholder={props.hint || ''} onClick={stopPropagation} - onDoubleClick={stopPropagation} + onDoubleClick={e => { + stopPropagation(e); + if (inputRef.current) { + inputRef.current.select(); + } + }} onBlur={e => { props.onChange( e.currentTarget.value,