@lvce-editor/renderer-process 30.64.7 → 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.
@@ -7153,6 +7153,9 @@ const handleKeyDown$2 = event => {
7153
7153
  metaKey,
7154
7154
  shiftKey
7155
7155
  } = event;
7156
+ if ((ctrlKey || metaKey) && !altKey && !shiftKey && key.toLowerCase() === 'a' && event.target instanceof HTMLInputElement && event.target.name === 'simple-browser-address') {
7157
+ return;
7158
+ }
7156
7159
  if (key === '.' && !altKey && !ctrlKey && !metaKey && !shiftKey && isEditableTarget(event.target)) {
7157
7160
  return;
7158
7161
  }
@@ -7792,9 +7795,17 @@ const handleFocusOut$2 = event => {
7792
7795
  address.setSelectionRange(0, 0);
7793
7796
  });
7794
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
+ };
7795
7804
  const listen = () => {
7796
7805
  document.addEventListener('focusin', handleFocus$2);
7797
7806
  document.addEventListener('focusout', handleFocusOut$2);
7807
+ document.addEventListener('input', cancelPendingAddressSelection);
7808
+ document.addEventListener('keydown', cancelPendingAddressSelection);
7798
7809
  };
7799
7810
  const restoreCodingFocus$1 = () => {
7800
7811
  const target = state$6.codingFocus?.deref();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/renderer-process",
3
- "version": "30.64.7",
3
+ "version": "30.64.9",
4
4
  "keywords": [
5
5
  "lvce-editor",
6
6
  "renderer-process"