From dd58f1849f09fcbab0afc6beddb42b58d1680db8 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Fri, 10 Mar 2023 10:11:59 +0100 Subject: [PATCH] editor: when focusing the label property with `F2`, select all text in the text area --- src/client/editor/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client/editor/index.js b/src/client/editor/index.js index de67c048..8487a502 100644 --- a/src/client/editor/index.js +++ b/src/client/editor/index.js @@ -465,6 +465,7 @@ class Editor { var input = DOM.get(this.inspector.container, 'textarea[name="label"]')[0] if (input) { input.focus() + input.setSelectionRange(0, input.value.length) input.scrollIntoView({block: 'center'}) } break