From 18305944780d970db38a7c72e1f9affdbadfc97f Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Fri, 5 Jan 2024 16:55:54 -0500 Subject: [PATCH] Also autofocus if the user clicked to open the preset pane re: #1265, re: #1267 This is another situation where we expect the focus to be on the input field. --- modules/ui/inspector.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ui/inspector.js b/modules/ui/inspector.js index 0335b5ac7d..f5e772b8a5 100644 --- a/modules/ui/inspector.js +++ b/modules/ui/inspector.js @@ -140,9 +140,9 @@ export function uiInspector(context) { presetList.selected(selected); } - // render and autofocus only if the feature is new. + // render preset list, focus on input field in some situations presetPane - .call(presetList.autofocus(_newFeature)); + .call(presetList.autofocus(_newFeature || animate)); };