@lvce-editor/renderer-process 10.9.0 → 10.10.0

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.
@@ -2503,15 +2503,18 @@ const create$H = () => {
2503
2503
  $Viewlet
2504
2504
  };
2505
2505
  };
2506
- const focus$i = state => {
2506
+ const focus$i = (state, key, source) => {
2507
+ if (source !== /* script */2) {
2508
+ return;
2509
+ }
2507
2510
  const {
2508
2511
  $Viewlet
2509
2512
  } = state;
2510
- const $InputBox = $Viewlet.querySelector('.MultilineInputBox');
2511
- if (!$InputBox) {
2513
+ const $Element = $Viewlet.querySelector(key);
2514
+ if (!$Element) {
2512
2515
  return;
2513
2516
  }
2514
- $InputBox.focus();
2517
+ $Element.focus();
2515
2518
  applyUidWorkaround($Viewlet);
2516
2519
  };
2517
2520
  const setValue$4 = (state, value) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/renderer-process",
3
- "version": "10.9.0",
3
+ "version": "10.10.0",
4
4
  "description": "",
5
5
  "main": "dist/rendererProcessMain.js",
6
6
  "type": "module",