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