fix: Correct the string corresponding to the platform
This commit is contained in:
parent
1cc6c7e167
commit
a6f9c16d50
@ -346,7 +346,7 @@ impl Handler {
|
||||
|
||||
let mut key_event = KeyEvent::new();
|
||||
// According to peer platform.
|
||||
if peer == "linux" {
|
||||
if peer == "Linux" {
|
||||
let keycode: u32 = rdev::linux_keycode_from_key(key).unwrap().into();
|
||||
key_event.set_chr(keycode);
|
||||
} else if peer == "Windows" {
|
||||
|
Loading…
x
Reference in New Issue
Block a user