fix build

This commit is contained in:
chiehw 2023-03-31 14:18:55 +08:00
parent 0f72af6529
commit 0312e734c0
2 changed files with 4 additions and 5 deletions

View File

@ -5,12 +5,12 @@ mod cn;
mod cs; mod cs;
mod da; mod da;
mod de; mod de;
mod el;
mod en; mod en;
mod eo; mod eo;
mod es; mod es;
mod fa; mod fa;
mod fr; mod fr;
mod el;
mod hu; mod hu;
mod id; mod id;
mod it; mod it;

View File

@ -10,7 +10,6 @@ use crate::{
new_voice_call_request, new_voice_call_response, start_audio_thread, MediaData, MediaSender, new_voice_call_request, new_voice_call_response, start_audio_thread, MediaData, MediaSender,
}, },
common::{get_default_sound_input, set_sound_input}, common::{get_default_sound_input, set_sound_input},
keyboard::{is_modifier, keycode_to_rdev_key},
video_service, video_service,
}; };
#[cfg(any(target_os = "android", target_os = "ios"))] #[cfg(any(target_os = "android", target_os = "ios"))]
@ -1371,17 +1370,17 @@ impl Connection {
}; };
let key = match me.mode.unwrap() { let key = match me.mode.unwrap() {
KeyboardMode::Map => Some(keycode_to_rdev_key(me.chr())), KeyboardMode::Map => Some(crate::keyboard::keycode_to_rdev_key(me.chr())),
KeyboardMode::Translate => { KeyboardMode::Translate => {
if let Some(key_event::Union::Chr(code)) = me.union.clone() { if let Some(key_event::Union::Chr(code)) = me.union.clone() {
Some(keycode_to_rdev_key(code & 0x0000FFFF)) Some(crate::keyboard::keycode_to_rdev_key(code & 0x0000FFFF))
} else { } else {
None None
} }
} }
_ => None, _ => None,
} }
.filter(is_modifier); .filter(crate::keyboard::is_modifier);
if let Some(key) = key { if let Some(key) = key {
if is_press { if is_press {