mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
refacotor: simplify mod of keyboard
This commit is contained in:
@@ -716,22 +716,3 @@ pub fn get_double_click_time() -> u32 {
|
||||
}
|
||||
}
|
||||
|
||||
pub mod keyboard {
|
||||
use crate::common::GrabState;
|
||||
use hbb_common::{allow_err, log, message_proto::*};
|
||||
use rdev::{Event, EventType, Key};
|
||||
use std::sync::mpsc;
|
||||
use std::thread;
|
||||
|
||||
|
||||
|
||||
pub fn _legacy_keyboard_mode(event: &Event, key_event: &KeyEvent) {
|
||||
log::info!("{:?}", event);
|
||||
}
|
||||
|
||||
pub fn _client_map_keyboard_mode(event: &Event, key_event: &KeyEvent) {
|
||||
|
||||
}
|
||||
|
||||
pub fn _translate_keyboard_mode(event: &Event, key_event: &KeyEvent) {}
|
||||
}
|
||||
|
||||
@@ -542,7 +542,3 @@ pub fn get_double_click_time() -> u32 {
|
||||
// to-do: https://github.com/servo/core-foundation-rs/blob/786895643140fa0ee4f913d7b4aeb0c4626b2085/cocoa/src/appkit.rs#L2823
|
||||
500 as _
|
||||
}
|
||||
|
||||
pub mod keyboard{
|
||||
|
||||
}
|
||||
@@ -1712,17 +1712,3 @@ pub fn send_message_to_hnwd(
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
pub mod keyboard {
|
||||
use crate::common::GrabState;
|
||||
use hbb_common::{allow_err, log, message_proto::*};
|
||||
use rdev::{Event, EventType, Key};
|
||||
use std::sync::mpsc;
|
||||
|
||||
|
||||
use crate::keyboard;
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user