From 68eaa9f00013239962d787ce0ab8fa2304f58e01 Mon Sep 17 00:00:00 2001 From: fufesou Date: Sun, 26 Mar 2023 12:57:32 +0800 Subject: [PATCH] macOS, fix build Signed-off-by: fufesou --- src/keyboard.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/keyboard.rs b/src/keyboard.rs index 0cd435cb4..dd0fae615 100644 --- a/src/keyboard.rs +++ b/src/keyboard.rs @@ -811,7 +811,7 @@ pub fn map_keyboard_mode(peer: &str, event: &Event, mut key_event: KeyEvent) -> #[cfg(any(target_os = "android", target_os = "ios"))] let keycode = 0; - key_event.set_chr(keycode); + key_event.set_chr(keycode as _); Some(key_event) }