@lvce-editor/quick-pick-worker 4.24.0 → 4.24.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5201,6 +5201,11 @@ const applyRender = (oldState, newState, diffResult) => {
|
|
|
5201
5201
|
if (item === RenderFocusedIndex) {
|
|
5202
5202
|
continue;
|
|
5203
5203
|
}
|
|
5204
|
+
if (item === RenderFocus) {
|
|
5205
|
+
// Register shortcuts before rendering/focusing the input. Waiting for its
|
|
5206
|
+
// DOM focus event leaves a round trip where Enter can be lost.
|
|
5207
|
+
commands.push(['Viewlet.setFocusContext', newState.uid, FocusQuickPickInput]);
|
|
5208
|
+
}
|
|
5204
5209
|
const fn = getRenderer(item);
|
|
5205
5210
|
commands.push(fn(oldState, newState));
|
|
5206
5211
|
}
|