mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 06:11:30 +11:00
Fix the event key code variable name (#1219)
This commit is contained in:
parent
157ca9cd17
commit
bedb889693
|
@ -42,7 +42,7 @@ pub fn mouse_scroll_delta(event: &MouseWheelEvent) -> Option<MouseScrollDelta> {
|
|||
}
|
||||
|
||||
pub fn scan_code<T: JsSerialize>(event: &T) -> ScanCode {
|
||||
let key_code = js! ( return @{event}.key_code; );
|
||||
let key_code = js! ( return @{event}.keyCode; );
|
||||
|
||||
key_code
|
||||
.try_into()
|
||||
|
|
Loading…
Reference in a new issue