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()