Add cancel event (#4476)

* feat: add cancel event

* feat: provide cancel event

* feat: insert cancel event in web

* fix: typo

* feat: propagate implementation of cancel event

* fix merge conflicts / tests

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
This commit is contained in:
Damien CORLERandJonathan Kelley authored and GitHub committed 2025-08-20 11:09:24 -07:00
1 parent f95d8e4682
commit 8d617080b1
9 files changed
+165 -5

No files matched your search

+8
View File
@@ -15,6 +15,14 @@ impl HtmlEventConverter for SerializedHtmlEventConverter {
.into()
}
fn convert_cancel_data(&self, event: &PlatformEventData) -> CancelData {
event
.downcast::<SerializedCancelData>()
.cloned()
.unwrap()
.into()
}
fn convert_clipboard_data(&self, event: &PlatformEventData) -> ClipboardData {
event
.downcast::<SerializedClipboardData>()