This repository has been archived on 2026-03-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
openclaw-extensions/wecom/node_modules/linkedom/cjs/interface/input-event.js
T

25 lines
627 B
JavaScript

'use strict';
// https://dom.spec.whatwg.org/#interface-customevent
/* c8 ignore start */
// One day Node might have CustomEvent too
const {Event} = require('./event.js');
/**
* @implements globalThis.InputEvent
*/
class InputEvent extends Event {
constructor(type, inputEventInit = {}) {
super(type, inputEventInit);
this.inputType = inputEventInit.inputType;
this.data = inputEventInit.data;
this.dataTransfer = inputEventInit.dataTransfer;
this.isComposing = inputEventInit.isComposing || false;
this.ranges = inputEventInit.ranges;
}
}
exports.InputEvent = InputEvent
/* c8 ignore stop */