@lvce-editor/renderer-process 30.64.5 → 30.64.7
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.
- package/dist/rendererProcessMain.js +16 -1
- package/package.json +1 -1
|
@@ -1475,7 +1475,8 @@ const createRuntimeName = name => {
|
|
|
1475
1475
|
return {
|
|
1476
1476
|
id,
|
|
1477
1477
|
name,
|
|
1478
|
-
|
|
1478
|
+
// Platform detection in workers relies on a trailing (Electron) or (Web).
|
|
1479
|
+
runtimeName: `[${id}] ${name}`
|
|
1479
1480
|
};
|
|
1480
1481
|
};
|
|
1481
1482
|
const track = (worker, startedIn = state$m.generation, trackedWorker) => {
|
|
@@ -7778,8 +7779,22 @@ const handleFocus$2 = event => {
|
|
|
7778
7779
|
state$6.codingFocus = new WeakRef(target);
|
|
7779
7780
|
}
|
|
7780
7781
|
};
|
|
7782
|
+
const handleFocusOut$2 = event => {
|
|
7783
|
+
const address = event.target;
|
|
7784
|
+
if (!(address instanceof HTMLInputElement) || address.name !== 'simple-browser-address') return;
|
|
7785
|
+
// Native WebContents focus can leave activeElement pointing at this input.
|
|
7786
|
+
// Defer so reparenting or a newer focus choice can preserve its selection.
|
|
7787
|
+
setTimeout(() => {
|
|
7788
|
+
const document = address.ownerDocument;
|
|
7789
|
+
if (!address.isConnected || document.hasFocus() && document.activeElement === address) return;
|
|
7790
|
+
clearTimeout(pendingSelections.get(address));
|
|
7791
|
+
pendingSelections.delete(address);
|
|
7792
|
+
address.setSelectionRange(0, 0);
|
|
7793
|
+
});
|
|
7794
|
+
};
|
|
7781
7795
|
const listen = () => {
|
|
7782
7796
|
document.addEventListener('focusin', handleFocus$2);
|
|
7797
|
+
document.addEventListener('focusout', handleFocusOut$2);
|
|
7783
7798
|
};
|
|
7784
7799
|
const restoreCodingFocus$1 = () => {
|
|
7785
7800
|
const target = state$6.codingFocus?.deref();
|