From bedb889693385bf77520eba0f74b24c45eca84d4 Mon Sep 17 00:00:00 2001 From: Ryan G Date: Fri, 11 Oct 2019 11:41:49 -0400 Subject: [PATCH] Fix the event key code variable name (#1219) --- src/platform_impl/web/stdweb/event.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform_impl/web/stdweb/event.rs b/src/platform_impl/web/stdweb/event.rs index f05e1ddb..14456dc0 100644 --- a/src/platform_impl/web/stdweb/event.rs +++ b/src/platform_impl/web/stdweb/event.rs @@ -42,7 +42,7 @@ pub fn mouse_scroll_delta(event: &MouseWheelEvent) -> Option { } pub fn scan_code(event: &T) -> ScanCode { - let key_code = js! ( return @{event}.key_code; ); + let key_code = js! ( return @{event}.keyCode; ); key_code .try_into()