File tree 1 file changed +25
-3
lines changed
src/main/scala/org/scalajs/dom/raw
1 file changed +25
-3
lines changed Original file line number Diff line number Diff line change @@ -777,9 +777,31 @@ abstract class Element
777
777
778
778
var id : String = js.native
779
779
780
- var oncut : js.Function1 [DragEvent , _] = js.native
781
- var oncopy : js.Function1 [DragEvent , _] = js.native
782
- var onpaste : js.Function1 [DragEvent , _] = js.native
780
+ /**
781
+ * The copy event is fired when the user initiates a copy action through the
782
+ * browser UI (for example, using the CTRL/Cmd+C keyboard shortcut or
783
+ * selecting the "Copy" from the menu) and in response to an allowed
784
+ * `document.execCommand("copy")` call.
785
+ *
786
+ * MDN
787
+ */
788
+ var oncopy : js.Function1 [ClipboardEvent , _] = js.native
789
+
790
+ /**
791
+ * The cut event is fired when a selection has been removed from the document
792
+ * and added to the clipboard.
793
+ *
794
+ * MDN
795
+ */
796
+ var oncut : js.Function1 [ClipboardEvent , _] = js.native
797
+
798
+ /**
799
+ * The paste event is fired when a selection has been pasted from the
800
+ * clipboard to the document.
801
+ *
802
+ * MDN
803
+ */
804
+ var onpaste : js.Function1 [ClipboardEvent , _] = js.native
783
805
784
806
var accessKey : String = js.native
785
807
You can’t perform that action at this time.
0 commit comments