@lvce-editor/renderer-process 30.64.8 → 30.64.9
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.
|
@@ -7795,9 +7795,17 @@ const handleFocusOut$2 = event => {
|
|
|
7795
7795
|
address.setSelectionRange(0, 0);
|
|
7796
7796
|
});
|
|
7797
7797
|
};
|
|
7798
|
+
const cancelPendingAddressSelection = event => {
|
|
7799
|
+
const address = event.target;
|
|
7800
|
+
if (!(address instanceof HTMLInputElement) || address.name !== 'simple-browser-address') return;
|
|
7801
|
+
clearTimeout(pendingSelections.get(address));
|
|
7802
|
+
pendingSelections.delete(address);
|
|
7803
|
+
};
|
|
7798
7804
|
const listen = () => {
|
|
7799
7805
|
document.addEventListener('focusin', handleFocus$2);
|
|
7800
7806
|
document.addEventListener('focusout', handleFocusOut$2);
|
|
7807
|
+
document.addEventListener('input', cancelPendingAddressSelection);
|
|
7808
|
+
document.addEventListener('keydown', cancelPendingAddressSelection);
|
|
7801
7809
|
};
|
|
7802
7810
|
const restoreCodingFocus$1 = () => {
|
|
7803
7811
|
const target = state$6.codingFocus?.deref();
|