@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.
- package/dist/previewSandBoxWorkerMain.js +14 -10
- package/package.json +1 -1
|
@@ -1806,11 +1806,13 @@ const getKeyboardEventInit = (key, code) => {
|
|
|
1806
1806
|
};
|
|
1807
1807
|
|
|
1808
1808
|
const setLegacyKeyCode$1 = (event, keyCode) => {
|
|
1809
|
-
Object.
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
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.
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
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) => {
|