#import #import // https://w3c.github.io/uievents/#inputevent [Exposed=Window] interface InputEvent : UIEvent { constructor(DOMString type, optional InputEventInit eventInitDict = {}); readonly attribute USVString? data; readonly attribute boolean isComposing; readonly attribute DOMString inputType; sequence getTargetRanges(); }; // https://w3c.github.io/uievents/#dictdef-inputeventinit dictionary InputEventInit : UIEventInit { DOMString? data = null; boolean isComposing = false; DOMString inputType = ""; };