Add missing event types to web (copied from desktop)

Related: #416
This commit is contained in:
Reinis Mazeiks committed 2022-05-23 10:12:11 +03:00
1 parent 62294d36d9
commit 60e74b2ec0
1 file changed
+5 -2
+5 -2
View File
@@ -305,6 +305,8 @@ fn event_name_from_typ(typ: &str) -> &'static str {
"keypress" => "keypress", "keypress" => "keypress",
"keyup" => "keyup", "keyup" => "keyup",
"focus" => "focus", "focus" => "focus",
"focusout" => "focusout",
"focusin" => "focusin",
"blur" => "blur", "blur" => "blur",
"change" => "change", "change" => "change",
"input" => "input", "input" => "input",
@@ -314,6 +316,7 @@ fn event_name_from_typ(typ: &str) -> &'static str {
"click" => "click", "click" => "click",
"contextmenu" => "contextmenu", "contextmenu" => "contextmenu",
"doubleclick" => "doubleclick", "doubleclick" => "doubleclick",
"dblclick" => "dblclick",
"drag" => "drag", "drag" => "drag",
"dragend" => "dragend", "dragend" => "dragend",
"dragenter" => "dragenter", "dragenter" => "dragenter",
@@ -374,8 +377,8 @@ fn event_name_from_typ(typ: &str) -> &'static str {
"volumechange" => "volumechange", "volumechange" => "volumechange",
"waiting" => "waiting", "waiting" => "waiting",
"toggle" => "toggle", "toggle" => "toggle",
_ => { a => {
panic!("unsupported event type") panic!("unsupported event type {:?}", a);
} }
} }
} }