mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-12-02 18:59:24 +08:00
Fix compile error of testcase
This commit is contained in:
parent
cbdc28ee20
commit
d07ef7af8a
@ -834,7 +834,7 @@ mod test {
|
||||
// set key/char base on char
|
||||
let mut evt = KeyEvent::new();
|
||||
evt.set_chr(66);
|
||||
evt.mode = ProtobufEnum::new(KeyboardMode::Legacy);
|
||||
evt.mode = KeyboardMode::Legacy.into();
|
||||
|
||||
evt.modifiers.push(ControlKey::CapsLock.into());
|
||||
|
||||
|
@ -961,7 +961,6 @@ impl Handler {
|
||||
evt.mode = keyboard_mode.into();
|
||||
let mut msg_out = Message::new();
|
||||
msg_out.set_key_event(evt);
|
||||
log::info!("{:?}", msg_out);
|
||||
self.send(Data::Message(msg_out));
|
||||
}
|
||||
|
||||
@ -1274,7 +1273,7 @@ impl Handler {
|
||||
|
||||
fn key_down_or_up(&mut self, down_or_up: bool, key: RdevKey, evt: Event) {
|
||||
// Call different functions according to keyboard mode.
|
||||
let mode = match std::env::var("KEYBOARD_MOAD")
|
||||
let mode = match std::env::var("KEYBOARD_MODE")
|
||||
.unwrap_or(String::from("legacy"))
|
||||
.as_str()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user