ladybird/Userland/Libraries/LibWeb/Clipboard/ClipboardEvent.idl
Timothy Flynn 0b0d44da27 LibWeb: Implement the ClipboardEvent IDL interface
We don't actually generate any such events ourselves. But Google Lens
will create one with the DataTransfer attribute set to that of any drop
event we send it.
2024-08-22 14:21:13 +02:00

13 lines
389 B
Text

#import <DOM/Event.idl>
#import <HTML/DataTransfer.idl>
dictionary ClipboardEventInit : EventInit {
DataTransfer? clipboardData = null;
};
// https://w3c.github.io/clipboard-apis/#clipboardevent
[Exposed=Window]
interface ClipboardEvent : Event {
constructor(DOMString type, optional ClipboardEventInit eventInitDict = {});
readonly attribute DataTransfer? clipboardData;
};