From 60e74b2ec0d70a9ae1850340748a8fde66c396ed Mon Sep 17 00:00:00 2001 From: Reinis Mazeiks Date: Mon, 23 May 2022 09:35:47 +0300 Subject: [PATCH] Add missing event types to web (copied from desktop) Related: #416 --- packages/web/src/dom.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/web/src/dom.rs b/packages/web/src/dom.rs index 94d66460f..f321398dc 100644 --- a/packages/web/src/dom.rs +++ b/packages/web/src/dom.rs @@ -305,6 +305,8 @@ fn event_name_from_typ(typ: &str) -> &'static str { "keypress" => "keypress", "keyup" => "keyup", "focus" => "focus", + "focusout" => "focusout", + "focusin" => "focusin", "blur" => "blur", "change" => "change", "input" => "input", @@ -314,6 +316,7 @@ fn event_name_from_typ(typ: &str) -> &'static str { "click" => "click", "contextmenu" => "contextmenu", "doubleclick" => "doubleclick", + "dblclick" => "dblclick", "drag" => "drag", "dragend" => "dragend", "dragenter" => "dragenter", @@ -374,8 +377,8 @@ fn event_name_from_typ(typ: &str) -> &'static str { "volumechange" => "volumechange", "waiting" => "waiting", "toggle" => "toggle", - _ => { - panic!("unsupported event type") + a => { + panic!("unsupported event type {:?}", a); } } }