Skip to content

Clipboard events: Fix signatures and add comments #314

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 11, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 25 additions & 3 deletions src/main/scala/org/scalajs/dom/raw/lib.scala
Original file line number Diff line number Diff line change
Expand Up @@ -777,9 +777,31 @@ abstract class Element

var id: String = js.native

var oncut: js.Function1[DragEvent, _] = js.native
var oncopy: js.Function1[DragEvent, _] = js.native
var onpaste: js.Function1[DragEvent, _] = js.native
/**
* The copy event is fired when the user initiates a copy action through the
* browser UI (for example, using the CTRL/Cmd+C keyboard shortcut or
* selecting the "Copy" from the menu) and in response to an allowed
* `document.execCommand("copy")` call.
*
* MDN
*/
var oncopy: js.Function1[ClipboardEvent, _] = js.native

/**
* The cut event is fired when a selection has been removed from the document
* and added to the clipboard.
*
* MDN
*/
var oncut: js.Function1[ClipboardEvent, _] = js.native

/**
* The paste event is fired when a selection has been pasted from the
* clipboard to the document.
*
* MDN
*/
var onpaste: js.Function1[ClipboardEvent, _] = js.native

var accessKey: String = js.native

Expand Down