@lvce-editor/renderer-process 30.0.0 → 30.1.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.
|
@@ -4316,6 +4316,13 @@ const hover = (element, options) => {
|
|
|
4316
4316
|
};
|
|
4317
4317
|
const type = (element, options) => {
|
|
4318
4318
|
element.value = options.text;
|
|
4319
|
+
const event = new InputEvent('input', {
|
|
4320
|
+
bubbles: true,
|
|
4321
|
+
cancelable: true,
|
|
4322
|
+
data: options.text,
|
|
4323
|
+
inputType: 'insertText'
|
|
4324
|
+
});
|
|
4325
|
+
element.dispatchEvent(event);
|
|
4319
4326
|
};
|
|
4320
4327
|
const keyboardEvent = (element, eventType, options) => {
|
|
4321
4328
|
const event = new KeyboardEvent(eventType, options);
|