Skip to content

Commit d9e8f3b

Browse files
committed
fix 404f161
1 parent b838aa0 commit d9e8f3b

File tree

2 files changed

+52
-1
lines changed

2 files changed

+52
-1
lines changed

lib/lwt/lwt_js_events.ml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,15 @@ let pointerup ?use_capture ?passive target =
387387
let clicks ?cancel_handler ?use_capture ?passive t =
388388
seq_loop click ?cancel_handler ?use_capture ?passive t
389389

390+
let copies ?cancel_handler ?use_capture ?passive t =
391+
seq_loop copy ?cancel_handler ?use_capture ?passive t
392+
393+
let cuts ?cancel_handler ?use_capture ?passive t =
394+
seq_loop cut ?cancel_handler ?use_capture ?passive t
395+
396+
let pastes ?cancel_handler ?use_capture ?passive t =
397+
seq_loop paste ?cancel_handler ?use_capture ?passive t
398+
390399
let dblclicks ?cancel_handler ?use_capture ?passive t =
391400
seq_loop dblclick ?cancel_handler ?use_capture ?passive t
392401

lib/lwt/lwt_js_events.mli

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,24 @@ val click :
190190
-> #Dom_html.eventTarget Js.t
191191
-> Dom_html.mouseEvent Js.t Lwt.t
192192

193+
val copy :
194+
?use_capture:bool
195+
-> ?passive:bool
196+
-> #Dom_html.eventTarget Js.t
197+
-> Dom_html.clipboardEvent Js.t Lwt.t
198+
199+
val cut :
200+
?use_capture:bool
201+
-> ?passive:bool
202+
-> #Dom_html.eventTarget Js.t
203+
-> Dom_html.clipboardEvent Js.t Lwt.t
204+
205+
val paste :
206+
?use_capture:bool
207+
-> ?passive:bool
208+
-> #Dom_html.eventTarget Js.t
209+
-> Dom_html.clipboardEvent Js.t Lwt.t
210+
193211
val dblclick :
194212
?use_capture:bool
195213
-> ?passive:bool
@@ -571,6 +589,30 @@ val clicks :
571589
-> (Dom_html.mouseEvent Js.t -> unit Lwt.t -> unit Lwt.t)
572590
-> unit Lwt.t
573591

592+
val copies :
593+
?cancel_handler:bool
594+
-> ?use_capture:bool
595+
-> ?passive:bool
596+
-> #Dom_html.eventTarget Js.t
597+
-> (Dom_html.clipboardEvent Js.t -> unit Lwt.t -> unit Lwt.t)
598+
-> unit Lwt.t
599+
600+
val cuts :
601+
?cancel_handler:bool
602+
-> ?use_capture:bool
603+
-> ?passive:bool
604+
-> #Dom_html.eventTarget Js.t
605+
-> (Dom_html.clipboardEvent Js.t -> unit Lwt.t -> unit Lwt.t)
606+
-> unit Lwt.t
607+
608+
val pastes :
609+
?cancel_handler:bool
610+
-> ?use_capture:bool
611+
-> ?passive:bool
612+
-> #Dom_html.eventTarget Js.t
613+
-> (Dom_html.clipboardEvent Js.t -> unit Lwt.t -> unit Lwt.t)
614+
-> unit Lwt.t
615+
574616
val dblclicks :
575617
?cancel_handler:bool
576618
-> ?use_capture:bool
@@ -792,7 +834,7 @@ val submits :
792834
-> ?use_capture:bool
793835
-> ?passive:bool
794836
-> #Dom_html.eventTarget Js.t
795-
-> (Dom_html.event Js.t -> unit Lwt.t -> unit Lwt.t)
837+
-> (Dom_html.submitEvent Js.t -> unit Lwt.t -> unit Lwt.t)
796838
-> unit Lwt.t
797839

798840
val selects :

0 commit comments

Comments
 (0)