Skip to content

Commit 19d949f

Browse files
committed
Add ClipboardEvent
1 parent 8ae9f97 commit 19d949f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/main/scala/org/scalajs/dom/raw/lib.scala

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3763,6 +3763,21 @@ trait DataTransfer extends js.Object {
37633763
def files: FileList = js.native
37643764
}
37653765

3766+
/**
3767+
* The ClipboardEvent interface represents events providing information related to
3768+
* modification of the clipboard, that is cut, copy, and paste events.
3769+
*
3770+
* MDN
3771+
*/
3772+
class ClipboardEvent(`type`: String, settings: js.Dynamic) extends Event {
3773+
/**
3774+
* Is a DataTransfer object containing the data affected by the user-initialed cut, copy,
3775+
* or paste operation, along with its MIME type.
3776+
*
3777+
* MDN
3778+
*/
3779+
def clipboardData: DataTransfer = js.native
3780+
}
37663781

37673782
/**
37683783
* The FocusEvent interface represents focus-related events like focus, blur,

0 commit comments

Comments
 (0)