fix: Correct the string corresponding to the platform

This commit is contained in:
Asura 2022-07-12 04:29:32 -07:00
parent 1cc6c7e167
commit a6f9c16d50

View File

@ -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" {