@lvce-editor/preview-sandbox-worker 4.2.0 → 4.3.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.
@@ -1806,11 +1806,13 @@ const getKeyboardEventInit = (key, code) => {
1806
1806
  };
1807
1807
 
1808
1808
  const setLegacyKeyCode$1 = (event, keyCode) => {
1809
- Object.defineProperty(event, 'keyCode', {
1810
- value: keyCode
1811
- });
1812
- Object.defineProperty(event, 'which', {
1813
- value: keyCode
1809
+ Object.defineProperties(event, {
1810
+ keyCode: {
1811
+ value: keyCode
1812
+ },
1813
+ which: {
1814
+ value: keyCode
1815
+ }
1814
1816
  });
1815
1817
  };
1816
1818
  const dispatchKeydownEvent = (element, window, key, code) => {
@@ -1851,11 +1853,13 @@ const handleKeydown = (uid, hdId, key, code) => {
1851
1853
  };
1852
1854
 
1853
1855
  const setLegacyKeyCode = (event, keyCode) => {
1854
- Object.defineProperty(event, 'keyCode', {
1855
- value: keyCode
1856
- });
1857
- Object.defineProperty(event, 'which', {
1858
- value: keyCode
1856
+ Object.defineProperties(event, {
1857
+ keyCode: {
1858
+ value: keyCode
1859
+ },
1860
+ which: {
1861
+ value: keyCode
1862
+ }
1859
1863
  });
1860
1864
  };
1861
1865
  const dispatchKeyupEvent = (element, window, key, code) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/preview-sandbox-worker",
3
- "version": "4.2.0",
3
+ "version": "4.3.0",
4
4
  "description": "Preview SandBox Worker",
5
5
  "repository": {
6
6
  "type": "git",