macOS, fix build

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou 2023-03-26 12:57:32 +08:00
parent 83deb71ce2
commit 68eaa9f000

View File

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